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

Method warningDone

packages/effect/src/TestClock.ts:298–308  ·  view source on GitHub ↗

* Cancels the warning message that is displayed if a test is using time but * is not advancing the `TestClock`.

()

Source from the content-addressed store, hash-verified

296 * is not advancing the `TestClock`.
297 */
298 warningDone(): Effect.Effect<void> {
299 return synchronized.updateSomeEffect(this.warningState, (warningData) => {
300 if (WarningData.isStart(warningData)) {
301 return Option.some(core.succeed(WarningData.done))
302 }
303 if (WarningData.isPending(warningData)) {
304 return Option.some(pipe(core.interruptFiber(warningData.fiber), core.as(WarningData.done)))
305 }
306 return Option.none()
307 })
308 }
309
310 private yieldTimer = core.async<void>((resume) => {
311 const timer = setTimeout(() => {

Callers 3

setTimeMethod · 0.95
adjustMethod · 0.95
liveFunction · 0.95

Calls 1

pipeFunction · 0.70

Tested by

no test coverage detected