Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Signal handler for CLI #42

Open
SionoiS opened this issue Jun 16, 2021 · 1 comment
Open

Signal handler for CLI #42

SionoiS opened this issue Jun 16, 2021 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@SionoiS
Copy link
Collaborator

SionoiS commented Jun 16, 2021

Build a separate task for signal handler then send updates to all other systems to trigger shut down procedures.

@SionoiS SionoiS added the enhancement New feature or request label Jun 16, 2021
@SionoiS SionoiS added the good first issue Good for newcomers label Jul 15, 2021
@SionoiS
Copy link
Collaborator Author

SionoiS commented Aug 10, 2021

tokio::try_join!() with the stream and crtl-c signal could be used, just return an error when ctrl-c is received.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant