https://github.com/matehat/supervisor-demo
https://github.com/matehat/supervisor-demo
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/matehat/supervisor-demo
- Owner: matehat
- Created: 2021-08-04T17:04:00.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-04T17:09:13.000Z (almost 5 years ago)
- Last Synced: 2025-01-21T02:41:37.852Z (over 1 year ago)
- Language: Elixir
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Demonstration of how we can wait for group of tasks before starting other parts.
1. child 1 starts and the task group starts immediately
2. as soon as the task group completed, child 4 starts and finishes immediately
```shell
$ mix run --no-halt
# ... sleeps 1s
Completed 1
# ... sleeps 1s
Completed 2
# ... sleeps 1s
Completed 3
Finished waiting
Completed 4
```