We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dcb9a2 commit 4b746d2Copy full SHA for 4b746d2
src/processes.jl
@@ -10,10 +10,10 @@ mutable struct Process <: DiscreteProcess
10
fsmi :: ResumableFunctions.FiniteStateMachineIterator
11
target :: AbstractEvent
12
resume :: Function
13
- function Process(func::Function, env::Environment, args::Any...)
+ function Process(func::Function, env::Environment, args::Any...; kwargs::Any...)
14
proc = new()
15
proc.bev = BaseEvent(env)
16
- proc.fsmi = func(env, args...)
+ proc.fsmi = func(env, args...; kwargs...)
17
proc.target = schedule(Initialize(env))
18
proc.resume = @callback execute(proc.target, proc)
19
proc
0 commit comments