Skip to content

Workflow ES 2.1

Compare
Choose a tag to compare
@danielgerlag danielgerlag released this 25 Mar 00:53
· 40 commits to master since this release
c462c7b

Workflow ES 2.1

  • Fixed typescript 2.4 issue

  • Delay step

Put the workflow to sleep for a specifed number of milliseconds.

build(builder) {
    builder
        .startWith(HelloWorld)
        .delay(data => 2000)
        .then(GoodbyeWorld);
}
  • Schedule step

Schedule a sequence of steps to execution asynchronously in the future.

build(builder) {
    builder
        .startWith(HelloWorld)
        .schedule((data) => 20000).do((sequence) => sequence
            .startWith(DoSomething)
            .then(DoSomethingElse))
        .then(ContinueWithSomething);
}