DaemonPollingInputmodelsDaemon.make
Source src/Daemon.ts:3681 lines
export type type DaemonPollingInput = Layer.Layer<
PollingTag,
never,
never
>
DaemonPollingInput = import LayerLayer.interface Layer<in ROut, out E = never, out RIn = never>A Layer describes how to build one or more services for dependency injection.
When to use
Use to model construction of application services for dependency injection,
especially when services have dependencies, can fail during construction, or
need scoped setup and release.
Details
A Layer<ROut, E, RIn> represents ROut as the services this layer
provides, E as the possible errors during layer construction, and RIn as
the services this layer requires as dependencies.
Layer<class PollingTagclass PollingTag {
key: Identifier;
Service: {
awaitNextTick: Effect.Effect<void>;
requestWake: Effect.Effect<void>;
resetCadence: Effect.Effect<void>;
afterTick: Effect.Effect<void>;
peekCadence: Effect.Effect<Option.Option<Duration.Duration>>;
};
}
Context tag for the Polling service — provided by the Daemon supervisor.
PollingTag, never, never>;