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

Function f

packages/experimental/test/utils/extend.ts:10–24  ·  view source on GitHub ↗
(
    name: string,
    self: () => Effect.Effect<A, E>,
    timeout = 5_000
  )

Source from the content-addressed store, hash-verified

8
9export const effect = (() => {
10 const f = <E, A>(
11 name: string,
12 self: () => Effect.Effect<A, E>,
13 timeout = 5_000
14 ) => {
15 return it(
16 name,
17 () =>
18 pipe(
19 Effect.suspend(self),
20 Effect.runPromise
21 ),
22 timeout
23 )
24 }
25 return Object.assign(f, {
26 skip: <E, A>(
27 name: string,

Callers 3

makeIndexedDbFunction · 0.50
makeFunction · 0.50
groupFunction · 0.50

Calls 2

itFunction · 0.85
pipeFunction · 0.50

Tested by

no test coverage detected