ConcurrentEffect

public protocol ConcurrentEffect : Effect

ConcurrentEffect describes computations that can be cancelled and evaluated concurrently.

  • Evaluates a side-effectful computation, allowing its cancellation.

    Declaration

    Swift

    static func runAsyncCancellable<A>(
        _ fa: Kind<Self, A>,
        _ callback: @escaping (Either<E, A>) -> Kind<Self, Void>) -> Kind<Self, Disposable>

    Parameters

    fa

    Computation.

    callback

    Callback to process the result of the evaluation.

    Return Value

    A computation describing the evaluation, providing a means to cancel it.