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

Function publishTracked

packages/effect/test/PubSub.test.ts:10–13  ·  view source on GitHub ↗
(pubsub: PubSub.PubSub<object>)

Source from the content-addressed store, hash-verified

8const gc: () => void = vm.runInNewContext("gc")
9
10const publishTracked = (pubsub: PubSub.PubSub<object>) => {
11 const value = {}
12 return Effect.as(PubSub.publish(pubsub, value), new WeakRef(value))
13}
14
15describe("PubSub", () => {
16 it.effect("publishAll - capacity 2 (BoundedPubSubPow2)", () => {

Callers 1

PubSub.test.tsFile · 0.85

Calls 1

publishMethod · 0.65

Tested by

no test coverage detected