provide
此内容尚不支持你的语言。
const provide: <I, S>( ...args: [key: Key<I, S>, value: S]) => Effect<void, ServiceConflict, Graft>Defined in: Graft.ts:88
Publishes a service into the current realm. It stays available until the activation that published it is torn down, which first waits for every consumer to let go of it.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
I |
S |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
…args |
[key: Key<I, S>, value: S] |
Returns
Section titled “Returns”Effect<void,
ServiceConflict,
Graft>