fork<A, E, R> method

Fiber<A, E> fork<A, E, R>(
  1. Effect<A, E, R> effect, [
  2. Context<R>? context
])

Creates a fiber that can be used to manage concurrent execution

Implementation

Fiber<A, E> fork<A, E, R>(
  Effect<A, E, R> effect, [
  Context<R>? context,
]) {
  return Fiber._(effect.runToExit(context));
}