mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-22 11:31:02 +00:00
ffc6a0f36e
A goroutine is used to manage the lifetime of subscriptions managed by resubscriptions. When the subscription ends with no error, the resub goroutine ends as well. However, the resub goroutine needs to live long enough to read from the unsub channel. Otheriwse, an Unsubscribe call deadlocks when writing to the unsub channel. This is fixed by adding a buffer to the unsub channel. |
||
---|---|---|
.. | ||
event_test.go | ||
event.go | ||
example_feed_test.go | ||
example_scope_test.go | ||
example_subscription_test.go | ||
example_test.go | ||
feed_test.go | ||
feed.go | ||
feedof_test.go | ||
feedof.go | ||
multisub_test.go | ||
multisub.go | ||
subscription_test.go | ||
subscription.go |