Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8990047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:24:42+00:00 2026-06-15T22:24:42+00:00

The C# async await feature is not yet available in MonoTouch 6.0. Until then

  • 0

The C# async await feature is not yet available in MonoTouch 6.0. Until then what is the best way to implement an async task in MonoTouch.

The MonoTouch docs recommend Threading from the System.Threading namespace to create responsive UI. But once the background worker thread is going how do I cancel it if it takes a long time? Do I need to implement a timer say for 60 secs and kill the thread when the timer event fires?

Are there better options?

Any help highly appreciated

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T22:24:43+00:00Added an answer on June 15, 2026 at 10:24 pm

    I’m not sure how much Mono has of the CLR at this point, but for background tasks, here’s my list, most-recommended first (full details on the rankings can be found on my blog):

    1. Task
    2. BackgroundWorker
    3. Delegate.BeginInvoke
    4. ThreadPool.QueueUserWorkItem
    5. Thread

    For a “cancellation flag”, I’d recommend one of these:

    1. CancellationToken – the gold standard. Use this if it’s available.
    2. ManualResetEvent
    3. volatile bool

    Cancellation is cooperative by nature, so the canceling side sends a cancellation notification, and the receiving side must periodically check it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using the new async/await model it's fairly straightforward to generate a Task that is
I am playing with async await feature of C#. Things work as expected when
I have some doubts about the design of C#'s upcoming async/await feature. The convenience
I tried to write xml file from XElement object with async/await feature. But I
Recently I try to learn about the new C# feature, async/await keywords for asynchronous
I have a problem with async-await expression which returns wrong result. private Task<int> A
I want to implement silverlight's localmessaging using async await. Lets say I created a
I've not had chance to check out the CTP of the new C# async/await
Is there any attempt to bring async/await feature from C# 5.0 to any language
I have a NetworkStream which I read asynchronously (using async/await) await Task<int>.Factory.FromAsync((cb, state) =>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.