mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-22 02:41:19 +00:00
+ Test that events can looop throught the routine + Test that routines can be stateful + Test that routines can prioritize processing errors
33 lines
416 B
Go
33 lines
416 B
Go
package v2
|
|
|
|
import "time"
|
|
|
|
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{}
|