go-ethereum/event
Felix Lange c35926c955 event: document select case slice use and add edge case test (#16680)
Feed keeps active subscription channels in a slice called 'f.sendCases'.
The Send method tracks the active cases in a local variable 'cases'
whose value is f.sendCases initially. 'cases' shrinks to a shorter
prefix of f.sendCases every time a send succeeds, moving the successful
case out of range of the active case list.

This can be confusing because the two slices share a backing array. Add
more comments to document what is going on. Also add a test for removing
a case that is in 'f.sentCases' but not 'cases'.
2024-08-30 12:42:55 +08:00
..
filter FIx Bad block error. 2021-09-17 17:59:06 +05:30
event.go eth/filter: check nil pointer when unsubscribe (#16682) 2024-03-18 10:08:25 +08:00
event_test.go FIx Bad block error. 2021-09-17 17:59:06 +05:30
example_feed_test.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
example_scope_test.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
example_subscription_test.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
example_test.go core, eth, event, miner, xeth: fix event post / subscription race 2015-10-12 16:22:03 +03:00
feed.go event: document select case slice use and add edge case test (#16680) 2024-08-30 12:42:55 +08:00
feed_test.go event: document select case slice use and add edge case test (#16680) 2024-08-30 12:42:55 +08:00
subscription.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
subscription_test.go all: update license information 2017-04-14 10:29:00 +02:00