Effect.gen(function* () {
yield* Effect.log("Welcome to the Effect Playground!");
return [1];
}).pipe(
Effect.map((r) =>
Effect.repeat(
Effect.succeed(r),
Schedule.recurUntil(() => r.length > 1)
)
),
Effect.runPromise
);
Effect.gen(function* () {
yield* Effect.log("Welcome to the Effect Playground!");
return [1];
}).pipe(
Effect.map((r) =>
Effect.repeat(
Effect.succeed(r),
Schedule.recurUntil(() => r.length > 1)
)
),
Effect.runPromise
);