(value: A)
| 118 | * @since 3.10.0 |
| 119 | */ |
| 120 | export const make = <A>(value: A): Effect.Effect<TxSubscriptionRef<A>> => |
| 121 | Effect.gen(function*() { |
| 122 | const ref = yield* TxRef.make(value) |
| 123 | const pubsub = yield* TxPubSub.unbounded<A>() |
| 124 | const self = Object.create(TxSubscriptionRefProto) |
| 125 | self[TypeId] = TypeId |
| 126 | self.ref = ref |
| 127 | self.pubsub = pubsub |
| 128 | return self |
| 129 | }).pipe(Effect.tx) |
| 130 | |
| 131 | // ============================================================================= |
| 132 | // Getters |