mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-01 09:42:12 +00:00
+ `routine.send` returns false when routine is not running + this will prevent panics sending to channels which have been closed + Make output channels routine specific removing the risk of someone writting to a channel which was closed by another touine. + consistency changes between the routines and the demuxer
36 lines
460 B
Go
36 lines
460 B
Go
package v2
|
|
|
|
import "time"
|
|
|
|
type Event interface{}
|
|
|
|
type Events []Event
|
|
type testEvent struct {
|
|
msg string
|
|
time time.Time
|
|
}
|
|
|
|
type testEventTwo struct {
|
|
msg string
|
|
}
|
|
|
|
type stopEvent struct{}
|
|
type timeCheck struct {
|
|
time time.Time
|
|
}
|
|
|
|
type errEvent struct{}
|
|
|
|
type scTestEvent struct{}
|
|
|
|
type pcFinished struct{}
|
|
|
|
type routineFinished struct{}
|
|
|
|
func (rf *routineFinished) Error() string {
|
|
return "routine finished"
|
|
}
|
|
|
|
type scFull struct{}
|
|
type pcFull struct{}
|