You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,12 +75,14 @@ run(sim, datetime+Month(3))
75
75
```
76
76
- using a novel finite-statemachine approach:
77
77
```julia
78
+
using ResumableFunctions
79
+
78
80
@resumablefunctionfibonnaci(sim::Simulation)
79
81
a =0.0
80
82
b =1.0
81
83
whiletrue
82
84
println(now(sim), ": ", a)
83
-
@yieldreturnTimeout(sim, 1)
85
+
@yieldTimeout(sim, 1)
84
86
a, b = b, a+b
85
87
end
86
88
end
@@ -89,6 +91,7 @@ run(sim, datetime+Month(3))
89
91
@coroutinefibonnaci(sim)
90
92
run(sim, 10)
91
93
```
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`.
92
95
* The continuous time simulation is based on a quantized state system solver. (EXPERIMENTAL)
0 commit comments