11b68f1934
https://play.golang.org/p/gN21yO9IRs3 ``` func waitWithCancel(f func() *clist.CElement, ctx context.Context) *clist.CElement { el := make(chan *clist.CElement, 1) select { case el <- f(): ``` will just run f() blockingly, so this doesn't change much in terms of behavior. |
||
---|---|---|
.. | ||
addrbook.go | ||
addrbook_test.go | ||
file.go | ||
known_address.go | ||
params.go | ||
pex_reactor.go | ||
pex_reactor_test.go |