Skip to content

Commit 7851448

Browse files
committed
export StopSimulation
1 parent 0d9815d commit 7851448

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/src/examples/ross.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const G = Exponential(MU)
3939
if state(get_spare) != SimJulia.idle
4040
@yield interrupt(value(get_spare))
4141
else
42-
throw(SimJulia.StopSimulation("No more spares!"))
42+
throw(StopSimulation("No more spares!"))
4343
end
4444
@yield request(repair_facility)
4545
@yield timeout(env, rand(G))
@@ -54,7 +54,7 @@ end
5454
@yield interrupt(proc)
5555
end
5656
for i in 1:S
57-
proc = @process machine(env, repair_facility, spares)
57+
proc = @process machine(env, repair_facility, spares)
5858
@yield put(spares, proc)
5959
end
6060
end

src/SimJulia.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module SimJulia
1616
export Event, succeed, fail, @callback, remove_callback
1717
export timeout
1818
export Operator, (&), (|)
19-
export AbstractProcess, Simulation, run, now, active_process
19+
export AbstractProcess, Simulation, run, now, active_process, StopSimulation
2020
export Process, @process, interrupt
2121
export Container, Resource, Store, put, get, request, release, cancel
2222
export nowDatetime

0 commit comments

Comments
 (0)