aboutsummaryrefslogtreecommitdiffstats
path: root/event/event.go
Commit message (Collapse)AuthorAgeFilesLines
* event: fix typo (#15270)Jia Chenhui2017-10-101-1/+1
|
* event: add new Subscription type and related utilitiesFelix Lange2017-01-261-1/+1
| | | | | | | | | This commit introduces a new Subscription type, which is synonymous with ethereum.Subscription. It also adds a couple of utilities that make working with Subscriptions easier. The mot complex utility is Feed, a synchronisation device that implements broadcast subscriptions. Feed is slightly faster than TypeMux and will replace uses of TypeMux across the go-ethereum codebase in the future.
* event: deprecate TypeMux and related typesFelix Lange2017-01-251-34/+24
| | | | | | | | | | | The Subscription type is gone, all uses are replaced by *TypeMuxSubscription. This change is prep-work for the introduction of the new Subscription type in a later commit. gorename -from '"github.com/ethereum/go-ethereum/event"::Event' -to TypeMuxEvent gorename -from '"github.com/ethereum/go-ethereum/event"::muxsub' -to TypeMuxSubscription gofmt -w -r 'Subscription -> *TypeMuxSubscription' ./event/*.go find . -name '*.go' -and -not -regex '\./vendor/.*' \| xargs gofmt -w -r 'event.Subscription -> *event.TypeMuxSubscription'
* event: fixed subscribtions to stopped event muxJeffrey Wilcke2016-05-131-0/+3
| | | | | | | | | | | | | This fixes an issue where the following would lead to a panic due to a channel being closed twice: * Start mux * Stop mux * Sub to mux * Unsub This is fixed by setting the subscriptions status to closed resulting in the Unsubscribe to ignore the request when called.
* core, eth, event, miner, xeth: fix event post / subscription racePéter Szilágyi2015-10-121-9/+28
|
* all: fix license headers one more timeFelix Lange2015-07-241-1/+1
| | | | I forgot to update one instance of "go-ethereum" in commit 3f047be5a.
* all: update license headers to distiguish GPL/LGPLFelix Lange2015-07-231-4/+4
| | | | | All code outside of cmd/ is licensed as LGPL. The headers now reflect this by calling the whole work "the go-ethereum library".
* all: update license informationFelix Lange2015-07-071-0/+16
|
* event: panic for duplicate typeFelix Lange2014-10-171-1/+5
|
* event: make TypeMux zero value ready to useFelix Lange2014-10-171-7/+6
|
* event: make Unsubscribe idempotentFelix Lange2014-10-171-7/+16
|
* event: add some documentationFelix Lange2014-10-171-0/+9
|
* event: new package for event multiplexerFelix Lange2014-10-171-0/+162