const instructions = Effect.gen(function* () {
const some_delayed_outcome_fiber = yield* Effect.fork(
Effect.tryPromise(() => somePromiseFunction())
);
//Other logic, effects, etc. all through here
//However if at any point the above fiber hits a failure, want to return early
//my current understanding is the failure and short circuit won't happen till here
const outcome = yield* Fiber.join(some_delayed_outcome_fiber);
});
const instructions = Effect.gen(function* () {
const some_delayed_outcome_fiber = yield* Effect.fork(
Effect.tryPromise(() => somePromiseFunction())
);
//Other logic, effects, etc. all through here
//However if at any point the above fiber hits a failure, want to return early
//my current understanding is the failure and short circuit won't happen till here
const outcome = yield* Fiber.join(some_delayed_outcome_fiber);
});