Engine for asynchronous multistage suspendable tasks