Skip to content
Discussion options

You must be logged in to vote

Both start and run behave differently: start returns a non-blocking handle which can be awaited, run will block.

Take a look at how the graceful shutdown example handles this.

There's various ways you might design your program, including running jobs in a separate process, so underway lets you decide how you want to do this.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@chungwong
Comment options

Answer selected by chungwong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants