MCPcopy Create free account
hub / github.com/Effect-TS/effect / fromStep

Function fromStep

packages/effect/src/Schedule.ts:250–260  ·  view source on GitHub ↗
(
  step: Effect<
    (now: number, input: Input) => Pull.Pull<[Output, Duration.Duration], ErrorX, Output, EnvX>,
    Error,
    Env
  >
)

Source from the content-addressed store, hash-verified

248 * @since 4.0.0
249 */
250export const fromStep = <Input, Output, EnvX, Error, ErrorX, Env>(
251 step: Effect<
252 (now: number, input: Input) => Pull.Pull<[Output, Duration.Duration], ErrorX, Output, EnvX>,
253 Error,
254 Env
255 >
256): Schedule<Output, Input, Error | Pull.ExcludeDone<ErrorX>, Env | EnvX> => {
257 const self = Object.create(ScheduleProto)
258 self.step = step
259 return self
260}
261
262const metadataFn = () => {
263 let n = 0

Callers 7

fromStepWithMetadataFunction · 0.85
Schedule.tsFile · 0.85
maxFunction · 0.85
cronFunction · 0.85
minFunction · 0.85
fibonacciFunction · 0.85
passthroughFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected