ocamlocaml-core

Possible usage of after (sec 0.)


Are there any situations when after function from Async library can be used with the time span of 0. seconds?

after (sec 0.)

Solution

  • Using after or at with times in the past will just return Deferred.unit. So it's safe, but there's not a lot of point.