File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,8 +27,11 @@ function show(io::IO, ev::AbstractEvent)
2727end
2828
2929function show (io:: IO , env:: Environment )
30- active_proc = try get (sim. active_proc) catch ; nothing end
31- print (io, " $(typeof (env)) time: $(now (env)) active_process: $(active_proc) " )
30+ if env. active_proc == nothing
31+ print (io, " $(typeof (env)) time: $(now (env)) active_process: nothing" )
32+ else
33+ print (io, " $(typeof (env)) time: $(now (env)) active_process: $(active_proc) " )
34+ end
3235end
3336
3437function environment (ev:: AbstractEvent ) :: Environment
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ println(typeof(ev))
1010cb = @callback test_callback (ev)
1111remove_callback (cb, ev)
1212println (state (ev))
13- println (value (ev))
13+ show (value (ev))
14+ println ()
1415succeed (ev, value= " Hi" )
1516@callback test_callback (ev)
1617println (state (ev))
You can’t perform that action at this time.
0 commit comments