Snippets tagged sleep

  • Async.Sleep with immediate cancellation

    Implementation of Async.Sleep in f# 2.0 doesn't allow break it execution until the time elapsed. Here is the alternate implementation which support immediate cancellation. According to discussion .

    2 people like this

    Posted: 12 years ago by Andrei Kolomentsev

  • Retry loop, no tricks

    Less-nonsense 8-line retry function that will retry a function a specified up to `maxRetries` times while it throws. After the retries, any remaining exception is allowed to propagate. Accepts a before function to allow you to wait/report when a retry is taking place

    2 people like this

    Posted: 9 years ago by Ruben Bartelink