package
0.0.0-20200601021147-e1aa8c7e24af
Repository: https://github.com/hello2mao/go-common.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

NewSubscription runs a producer function as a subscription in a new goroutine.
Now returns the current absolute monotonic time.
Resubscribe calls fn repeatedly to keep a subscription established.

# Structs

Feed implements one-to-many subscriptions where the carrier of events is a channel.
SubscriptionScope provides a facility to unsubscribe multiple subscriptions at once.
System implements Clock using the system clock.

# Interfaces

ChanTimer is a cancellable event created by NewTimer.
The Clock interface makes it possible to replace the monotonic system clock with a simulated clock.
Subscription represents a stream of events.
Timer is a cancellable event created by AfterFunc.

# Type aliases

AbsTime represents absolute monotonic time.
A ResubscribeFunc attempts to establish a subscription.