Creates a Task from the raw com.thoughtworks.zerocost.tryt.TryT
Creates a Task from the raw com.thoughtworks.zerocost.tryt.TryT
Returns a Task of an asynchronous operation.
Returns a Task of a blocking operation
Returns a Task of a blocking operation that will run on executionContext
.
Returns a Task whose value is always a
.
Returns a Task whose value is always a
.
Returns a Task of an asynchronous operation like async except this method is stack-safe.
Extracts the underlying com.thoughtworks.zerocost.tryt.TryT of future
Extracts the underlying com.thoughtworks.zerocost.tryt.TryT of future
This unapply
can be used in pattern matching expression.
import com.thoughtworks.zerocost.task.Task import com.thoughtworks.zerocost.continuation.UnitContinuation val Task(tryT) = Task.pure[Int](42) tryT should be(a[com.thoughtworks.zerocost.tryt.TryT[UnitContinuation, _]])