UnsafeRun
public protocol UnsafeRun : MonadError
UsafeRun provides capabilities to run a computation unsafely, synchronous or asynchronously.
-
Unsafely runs a computation in a synchronous manner.
Throws
Error happened during the execution of the computation, of the error type of the underlyingMonadError.Declaration
Swift
static func runBlocking<A>( on queue: DispatchQueue, _ fa: @escaping () -> Kind<Self, A>) throws -> AParameters
queueDispatch queue used to run the computation.
faComputation to be run.
Return Value
Result of running the computation.
-
Unsafely runs a computation in an asynchronous manner.
Declaration
Parameters
queueDispatch queue used to run the computation.
faComputation to be run.
callbackCallback to report the result of the evaluation.
Install in Dash
UnsafeRun Protocol Reference