跳转到内容

provide

此内容尚不支持你的语言。

const provide: <I, S>(
...args: [key: Key<I, S>, value: S]
) => Effect<void, ServiceConflict, Graft>

Defined in: Graft.ts:94

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 Parameter
I
S
Parameter Type
…args [key: Key<I, S>, value: S]

Effect<void, ServiceConflict, Graft>