Skip to content

Support background command by sys-arg "%delay"

Pre-release
Pre-release
Compare
Choose a tag to compare
@innerr innerr released this 28 Nov 21:55
· 184 commits to main since this release
8ef377e

From this feature, any command can be run in background by adding a sys-level arg %delay:
delay-basic

Another example, we use %delay in a flow named delay-demo:
delay-sync-more

What delayed-commands look like in flow desc (aka, command -):
delay-desc

When we run delay-demo, the executing panel shows how and when those delayed-commands are scheduled:
delay-schedule-info

The is a bg area for background running info (zZ is scheduled but not started yet, >> is running, is started and finished):
delay-bg-info

When main thread is end, each backround command's output will be showed one by one:
delay-main-end

Important: the env will be a snapshot at the scheduling time of main thread, any changes in the snapshot(a copy) will not affect the original env in main thread.