Skip to content

Commit 89f5296

Browse files
committed
Update README.md
1 parent 7fdfeb0 commit 89f5296

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,14 @@ run(sim, datetime+Month(3))
7575
```
7676
- using a novel finite-statemachine approach:
7777
```julia
78+
using ResumableFunctions
79+
7880
@resumable function fibonnaci(sim::Simulation)
7981
a = 0.0
8082
b = 1.0
8183
while true
8284
println(now(sim), ": ", a)
83-
@yield return Timeout(sim, 1)
85+
@yield Timeout(sim, 1)
8486
a, b = b, a+b
8587
end
8688
end
@@ -89,6 +91,7 @@ run(sim, datetime+Month(3))
8991
@coroutine fibonnaci(sim)
9092
run(sim, 10)
9193
```
94+
* Starting from SimJulia v0.4.1, `ResumableFunctions` is a separate package exporting the `resumable` and `yield` macro and it is a dependency for `SimJulia`.
9295
* The continuous time simulation is based on a quantized state system solver. (EXPERIMENTAL)
9396
```julia
9497
@model function diffeq(t, x, p, dx)

0 commit comments

Comments
 (0)