- 
                  
                  Safe downcast. DeclarationSwift public static func fix(_ fa: IOOf<E, A>) -> IO<E, A>ParametersfaValue in higher-kind form. Return ValueValue casted to IO. 
- 
                  
                  Creates an EnvIO with no dependencies from this IO. DeclarationSwift public func env<D>() -> EnvIO<D, E, A>
- 
                  
                  Creates an IO from a side-effectful function. DeclarationSwift public static func invoke(_ f: @escaping () throws -> A) -> IO<E, A>ParametersfSide-effectful function. Errors thrown from this function must be of type E; otherwise, a fatal error will happen.Return ValueAn IO suspending the execution of the side effect. 
- 
                  
                  Creates an IO from a side-effectful function. DeclarationSwift public static func invokeEither(_ f: @escaping () throws -> Either<E, A>) -> IO<E, A>ParametersfSide-effectful function returning an Either. Errors thrown from this function must be of typeE; otherwise, a fatal error will happen.Return ValueAn IO suspending the execution of the side effect. 
- 
                  
                  Creates an IO from a side-effectful function. DeclarationSwift public static func invokeResult(_ f: @escaping () throws -> Result<A, E>) -> IO<E, A>ParametersfSide-effectful function returning a Result. Errors thrown from this function must be of typeE; otherwise, a fatal error will happen.Return ValueAn IO suspending the execution of the side effect. 
- 
                  
                  Creates an IO from a side-effectful function. DeclarationSwift public static func invokeValidated(_ f: @escaping () throws -> Validated<E, A>) -> IO<E, A>ParametersfSide-effectful function returning an Validated. Errors thrown from this function must be of typeE; otherwise, a fatal error will happen.Return ValueAn IO suspending the execution of the side effect. 
- 
                  
                  Creates an IO from 2 side-effectful functions, tupling their results. Errors thrown from the functions must be of type E; otherwise, a fatal error will happen.DeclarationSwift public static func merge<Z, B>( _ fa: @escaping () throws -> Z, _ fb: @escaping () throws -> B) -> IO<E, (Z, B)> where A == (Z, B)Parametersfa1st side-effectful function. fb2nd side-effectful function. Return ValueAn IO suspending the execution of the side effects. 
- 
                  
                  Creates an IO from 3 side-effectful functions, tupling their results. Errors thrown from the functions must be of type E; otherwise, a fatal error will happen.DeclarationSwift public static func merge<Z, B, C>( _ fa: @escaping () throws -> Z, _ fb: @escaping () throws -> B, _ fc: @escaping () throws -> C) -> IO<E, (Z, B, C)> where A == (Z, B, C)Parametersfa1st side-effectful function. fb2nd side-effectful function. fc3rd side-effectful function. Return ValueAn IO suspending the execution of the side effects. 
- 
                  
                  Creates an IO from 4 side-effectful functions, tupling their results. Errors thrown from the functions must be of type E; otherwise, a fatal error will happen.DeclarationSwift public static func merge<Z, B, C, D>( _ fa: @escaping () throws -> Z, _ fb: @escaping () throws -> B, _ fc: @escaping () throws -> C, _ fd: @escaping () throws -> D) -> IO<E, (Z, B, C, D)> where A == (Z, B, C, D)Parametersfa1st side-effectful function. fb2nd side-effectful function. fc3rd side-effectful function. fd4th side-effectful function. Return ValueAn IO suspending the execution of the side effects. 
- 
                  
                  Creates an IO from 5 side-effectful functions, tupling their results. Errors thrown from the functions must be of type E; otherwise, a fatal error will happen.DeclarationSwift public static func merge<Z, B, C, D, F>( _ fa: @escaping () throws -> Z, _ fb: @escaping () throws -> B, _ fc: @escaping () throws -> C, _ fd: @escaping () throws -> D, _ ff: @escaping () throws -> F) -> IO<E, (Z, B, C, D, F)> where A == (Z, B, C, D, F)Parametersfa1st side-effectful function. fb2nd side-effectful function. fc3rd side-effectful function. fd4th side-effectful function. ff5th side-effectful function. Return ValueAn IO suspending the execution of the side effects. 
- 
                  
                  Creates an IO from 6 side-effectful functions, tupling their results. Errors thrown from the functions must be of type E; otherwise, a fatal error will happen.DeclarationSwift public static func merge<Z, B, C, D, F, G>( _ fa: @escaping () throws -> Z, _ fb: @escaping () throws -> B, _ fc: @escaping () throws -> C, _ fd: @escaping () throws -> D, _ ff: @escaping () throws -> F, _ fg: @escaping () throws -> G) -> IO<E, (Z, B, C, D, F, G)> where A == (Z, B, C, D, F, G)Parametersfa1st side-effectful function. fb2nd side-effectful function. fc3rd side-effectful function. fd4th side-effectful function. ff5th side-effectful function. fg6th side-effectful function. Return ValueAn IO suspending the execution of the side effects. 
- 
                  
                  Creates an IO from 7 side-effectful functions, tupling their results. Errors thrown from the functions must be of type E; otherwise, a fatal error will happen.DeclarationSwift public static func merge<Z, B, C, D, F, G, H>( _ fa: @escaping () throws -> Z, _ fb: @escaping () throws -> B, _ fc: @escaping () throws -> C, _ fd: @escaping () throws -> D, _ ff: @escaping () throws -> F, _ fg: @escaping () throws -> G, _ fh: @escaping () throws -> H ) -> IO<E, (Z, B, C, D, F, G, H)> where A == (Z, B, C, D, F, G, H)Parametersfa1st side-effectful function. fb2nd side-effectful function. fc3rd side-effectful function. fd4th side-effectful function. ff5th side-effectful function. fg6th side-effectful function. fh7th side-effectful function. Return ValueAn IO suspending the execution of the side effects. 
- 
                  
                  Creates an IO from 8 side-effectful functions, tupling their results. Errors thrown from the functions must be of type E; otherwise, a fatal error will happen.DeclarationSwift public static func merge<Z, B, C, D, F, G, H, I>( _ fa: @escaping () throws -> Z, _ fb: @escaping () throws -> B, _ fc: @escaping () throws -> C, _ fd: @escaping () throws -> D, _ ff: @escaping () throws -> F, _ fg: @escaping () throws -> G, _ fh: @escaping () throws -> H, _ fi: @escaping () throws -> I) -> IO<E, (Z, B, C, D, F, G, H, I)> where A == (Z, B, C, D, F, G, H, I)Parametersfa1st side-effectful function. fb2nd side-effectful function. fc3rd side-effectful function. fd4th side-effectful function. ff5th side-effectful function. fg6th side-effectful function. fh7th side-effectful function. fi8th side-effectful function. Return ValueAn IO suspending the execution of the side effects. 
- 
                  
                  Creates an IO from 9 side-effectful functions, tupling their results. Errors thrown from the functions must be of type E; otherwise, a fatal error will happen.DeclarationSwift public static func merge<Z, B, C, D, F, G, H, I, J>( _ fa: @escaping () throws -> Z, _ fb: @escaping () throws -> B, _ fc: @escaping () throws -> C, _ fd: @escaping () throws -> D, _ ff: @escaping () throws -> F, _ fg: @escaping () throws -> G, _ fh: @escaping () throws -> H, _ fi: @escaping () throws -> I, _ fj: @escaping () throws -> J ) -> IO<E, (Z, B, C, D, F, G, H, I, J)> where A == (Z, B, C, D, F, G, H, I, J)Parametersfa1st side-effectful function. fb2nd side-effectful function. fc3rd side-effectful function. fd4th side-effectful function. ff5th side-effectful function. fg6th side-effectful function. fh7th side-effectful function. fi8th side-effectful function. fj9th side-effectful function. Return ValueAn IO suspending the execution of the side effects. 
- 
                  
                  Performs the side effects that are suspended in this IO in a synchronous manner. Throws Error of typeEthat may happen during the evaluation of the side-effects. Errors of other types thrown from the evaluation of this IO will cause a fatal error.DeclarationSwift public func unsafeRunSync(on queue: DispatchQueue = .main) throws -> AParametersqueueDispatch queue used to execute the side effects. Defaults to the main queue. Return ValueValue produced after running the suspended side effects. 
- 
                  
                  Performs the side effects that are suspended in this IO in a synchronous manner. DeclarationSwift public func unsafeRunSyncEither(on queue: DispatchQueue = .main) -> Either<E, A>ParametersqueueDispatch queue used to execute the side effects. Defaults to the main queue. Return ValueAn Either wrapping errors in the left side and values on the right side. Errors of other types thrown from the evaluation of this IO will cause a fatal error. 
- 
                  
                  Flattens the internal structure of this IO by performing the side effects and wrapping them again in an IO structure containing the result or the error produced. DeclarationSwift public func attempt(on queue: DispatchQueue = .main) -> IO<E, A>ParametersqueueDispatch queue used to execute the side effects. Defaults to the main queue. Return ValueAn IO that either contains the value produced or an error. Errors of other types thrown from the evaluation of this IO will cause a fatal error. 
- 
                  
                  Performs the side effects that are suspended in this IO in an asynchronous manner. DeclarationSwift public func unsafeRunAsync(on queue: DispatchQueue = .main, _ callback: @escaping Callback<E, A> = { _ in })ParametersqueueDispatch queue used to execute the side effects. Defaults to the main queue. callbackA callback function to receive the results of the evaluation. Errors of other types thrown from the evaluation of this IO will cause a fatal error. 
- 
                  
                  Transforms the error type of this IO. DeclarationSwift @available(*, deprecated, renamed: "mapError") public func mapLeft<EE>(_ f: @escaping (E) -> EE) -> IO<EE, A>ParametersfFunction transforming the error. Return ValueAn IO value with the new error type. 
- 
                  
                  Transforms the error type of this IO. DeclarationSwift public func mapError<EE>(_ f: @escaping (E) -> EE) -> IO<EE, A>ParametersfFunction transforming the error. Return ValueAn IO value with the new error type. 
- 
                  
                  Returns this IOerasing the error type informationDeclarationSwift public var anyError: IO<Error, A> { get }
- 
                  
                  Folds over the result of this computation by accepting an effect to execute in case of error, and another one in the case of success. DeclarationSwift public func foldM<B>( _ f: @escaping (E) -> IO<E, B>, _ g: @escaping (A) -> IO<E, B>) -> IO<E, B>ParametersfFunction to run in case of error. gFunction to run in case of success. Return ValueA computation from the result of applying the provided functions to the result of this computation. 
- 
                  
                  Retries this computation if it fails based on the provided retrial policy. This computation will be at least executed once, and if it fails, it will be retried according to the policy. DeclarationSwift public func retry<S, O>(_ policy: Schedule<Any, E, S, O>) -> IO<E, A>ParameterspolicyRetrial policy. Return ValueA computation that is retried based on the provided policy when it fails. 
- 
                  
                  Retries this computation if it fails based on the provided retrial policy, providing a default computation to handle failures after retrial. This computation will be at least executed once, and if it fails, it will be retried according to the policy. DeclarationParameterspolicyRetrial policy. orElseFunction to handle errors after retrying. Return ValueA computation that is retried based on the provided policy when it fails. 
- 
                  
                  Repeats this computation until the provided repeating policy completes, or until it fails. This computation will be at least executed once, and if it succeeds, it will be repeated additional times according to the policy. DeclarationSwift public func `repeat`<S, O>( _ policy: Schedule<Any, A, S, O>, onUpdateError: @escaping () -> E = { fatalError("Impossible to update error on repeat.") }) -> IO<E, O>ParameterspolicyRepeating policy. onUpdateErrorA function providing an error in case the policy fails to update properly. Return ValueA computation that is repeated based on the provided policy when it succeeds. 
- 
                  
                  Repeats this computation until the provided repeating policy completes, or until it fails, with a function to handle potential failures. DeclarationParameterspolicyRepeating policy. onUpdateErrorA function providing an error in case the policy fails to update properly. orElseA function to return a computation in case of error. Return ValueA computation that is repeated based on the provided policy when it succeeds. 
- 
                  
                  Sleeps for the specified amount of time. DeclarationSwift static func sleep(_ interval: DispatchTimeInterval) -> IO<E, Void>ParametersintervalInterval of time to sleep. Return ValueAn IO that sleeps for the specified amount of time. 
- 
                  
                  Sleeps for the specified amount of time. DeclarationSwift static func sleep(_ interval: TimeInterval) -> IO<E, Void>ParametersintervalInterval of time to sleep. Return ValueAn IO that sleeps for the specified amount of time. 
- 
                  
                  Creates an IO from a side-effectful function. DeclarationSwift static func invokeTry(_ f: @escaping () throws -> Try<A>) -> IO<Error, A>ParametersfSide-effectful function returning a Try. Errors thrown from this function must be of typeE; otherwise, a fatal error will happen.Return ValueAn IO suspending the execution of the side effect. 
 
             Install in Dash
              Install in Dash
             IO Class Reference
        IO Class Reference