schedule
Schedules commands to be run at a specific time
Creates a function and returns a schedule command to run it at a specific time
Example:
ns.schedule(ticks(10)) {
cmd("say Hello World!")
cmd("say Hi!")
}
Content copied to clipboard
See also
Schedules a function to be run at a specific time
Example:
val myFunc = ns.function("my_func") { /*...*/}
ns.schedule(secs(10), myFunc)
Content copied to clipboard