File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,11 @@ function show(io::IO, ev::AbstractEvent)
27
27
end
28
28
29
29
function 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
32
35
end
33
36
34
37
function environment (ev:: AbstractEvent ) :: Environment
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ println(typeof(ev))
10
10
cb = @callback test_callback (ev)
11
11
remove_callback (cb, ev)
12
12
println (state (ev))
13
- println (value (ev))
13
+ show (value (ev))
14
+ println ()
14
15
succeed (ev, value= " Hi" )
15
16
@callback test_callback (ev)
16
17
println (state (ev))
You can’t perform that action at this time.
0 commit comments