MCPcopy Index your code
hub / github.com/Effect-TS/effect / pollSchedule

Function pollSchedule

packages/effect/test/TReentrantLock.test.ts:14–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12import * as TReentrantLock from "effect/TReentrantLock"
13
14const pollSchedule = <E, A>(): Schedule.Schedule<Option.Option<Exit.Exit<E, A>>, Option.Option<Exit.Exit<E, A>>> =>
15 pipe(
16 Schedule.recurs(100),
17 Schedule.zipRight(
18 pipe(
19 Schedule.identity<Option.Option<Exit.Exit<E, A>>>(),
20 Schedule.whileOutput(Option.isNone)
21 )
22 )
23 )
24
25describe("TReentrantLock", () => {
26 it.effect("one read lock", () =>

Callers 1

Calls 1

pipeFunction · 0.50

Tested by

no test coverage detected