Skip to content

Add stop method #3

Description

@twolfson

I'm using async for my async tasks and have 2 scenarios where a stop method would be helpful:

  • I already know when the tasks are done and don't want to listen to multiprocess for done (so I can have 1 function to handle next case)
  • Tasks are cancelled due to an fail fast error
    • I need to be able to log an error without worry of it being overwritten by a pending setTimeout

This should be plausible via a stop method which runs clearTimeout and loop()'s success case (i.e. this.update.done();)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions