IOPartial

public final class IOPartial<E> : Kind<ForIO, E> where E : Error

Partial application of the IO type constructor, omitting the last parameters.

  • Declaration

    Swift

    public static func map<A, B>(
        _ fa: IOOf<E, A>,
        _ f: @escaping (A) -> B) -> IOOf<E, B>
  • Declaration

    Swift

    public static func pure<A>(_ a: A) -> IOOf<E, A>
  • Declaration

    Swift

    public static func `defer`<A>(_ fa: @escaping () -> IOOf<E, A>) -> IOOf<E, A>
  • Declaration

    Swift

    public static func asyncF<A>(_ procf: @escaping (@escaping (Either<E, A>) -> ()) -> IOOf<E, ()>) -> IOOf<E, A>
  • Declaration

    Swift

    public static func continueOn<A>(
        _ fa: IOOf<E, A>,
        _ queue: DispatchQueue) -> IOOf<E, A>
  • Declaration

    Swift

    public static func race<A, B>(
        _ fa: Kind<IOPartial<E>, A>,
        _ fb: Kind<IOPartial<E>, B>) -> Kind<IOPartial<E>, Either<A, B>>
  • Declaration

    Swift

    public static func parMap<A, B, Z>(
        _ fa: Kind<IOPartial<E>, A>,
        _ fb: Kind<IOPartial<E>, B>,
        _ f: @escaping (A, B) -> Z) -> Kind<IOPartial<E>, Z>
  • Declaration

    Swift

    public static func parMap<A, B, C, Z>(
        _ fa: Kind<IOPartial<E>, A>,
        _ fb: Kind<IOPartial<E>, B>,
        _ fc: Kind<IOPartial<E>, C>,
        _ f: @escaping (A, B, C) -> Z) -> Kind<IOPartial<E>, Z>
  • Declaration

    Swift

    public static func runBlocking<A>(
        on queue: DispatchQueue,
        _ fa: @escaping () -> Kind<IOPartial<E>, A>) throws -> A
  • Declaration

    Swift

    public static func runNonBlocking<A>(
        on queue: DispatchQueue,
        _ fa: @escaping () -> Kind<IOPartial<E>, A>,
        _ callback: @escaping (Either<E, A>) -> ())