@@ -9,7 +9,7 @@ function Event{E<:Environment}(env::E)
99 Event {E} (env)
1010end
1111
12- function succeed {E<:Environment} (ev:: Event{E} ; priority:: Bool = false , value:: Any = nothing ) :: Event{E}
12+ function succeed {E<:Environment} (ev:: Event{E} ; priority:: Int8 = Int8 ( 0 ) , value:: Any = nothing ) :: Event{E}
1313 sta = state (ev)
1414 if sta == scheduled || sta == triggered
1515 throw (EventNotIdle (ev))
@@ -18,7 +18,7 @@ function succeed{E<:Environment}(ev::Event{E}; priority::Bool=false, value::Any=
1818 return ev
1919end
2020
21- function fail {E<:Environment} (ev:: Event{E} , exc:: Exception ; priority:: Bool = false ) :: Event{E}
21+ function fail {E<:Environment} (ev:: Event{E} , exc:: Exception ; priority:: Int8 = Int8 ( 0 ) ) :: Event{E}
2222 succeed (ev, priority= priority, value= exc)
2323end
2424
@@ -43,17 +43,17 @@ Timeout{E<:Environment} <: AbstractEvent{E}
4343
4444struct Timeout{E<: Environment } <: AbstractEvent{E}
4545 bev :: BaseEvent{E}
46- function Timeout {E} (env:: E , delay:: Union{Period, Number} , priority:: Bool , value:: Any ) where E<: Environment
46+ function Timeout {E} (env:: E , delay:: Union{Period, Number} , priority:: Int8 , value:: Any ) where E<: Environment
4747 ev = new (BaseEvent (env))
4848 schedule (ev. bev, delay, priority= priority, value= value)
4949 return ev
5050 end
5151end
5252
53- function Timeout {E<:Environment} (env:: E , delay:: Period ; priority:: Bool = false , value:: Any = nothing ) :: Timeout{E}
53+ function Timeout {E<:Environment} (env:: E , delay:: Period ; priority:: Int8 = Int8 ( 0 ) , value:: Any = nothing ) :: Timeout{E}
5454 Timeout {E} (env, delay, priority, value)
5555end
5656
57- function Timeout {E<:Environment} (env:: E , delay:: Number = 0 ; priority:: Bool = false , value:: Any = nothing ) :: Timeout{E}
57+ function Timeout {E<:Environment} (env:: E , delay:: Number = 0 ; priority:: Int8 = Int8 ( 0 ) , value:: Any = nothing ) :: Timeout{E}
5858 Timeout {E} (env, delay, priority, value)
5959end
0 commit comments