Returns a Continuation of an asynchronous operation.
Returns a Continuation of an asynchronous operation.
safeAsync in case of StackOverflowError
.
Returns a Continuation of a blocking operation
Returns a Continuation of a blocking operation
Returns a Continuation whose value is always a
.
Returns a Continuation whose value is always a
.
Returns a Continuation of an asynchronous operation like async except this method is stack-safe.
Extracts the underlying scala.Function1 of continuation
Extracts the underlying scala.Function1 of continuation
This unapply
can be used in pattern matching expression.
import com.thoughtworks.zerocost.continuation.Continuation val Continuation(f) = Continuation.pure[Unit, Int](42) f should be(a[Function1[_, _]])
The companion object for Continuation.