Sean Braithwaite 0cf9f86292 Modification based on feedback
+ `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
2019-08-06 13:27:15 +02:00

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{}