dabeaz / curio

Good Curio!
Other
4.01k stars 240 forks source link

add join for tasks in semaphore example #280

Closed alekibango closed 5 years ago

alekibango commented 5 years ago

Without joining those tasks the program runs much faster than expected by novice users.

This change makes the example work as expected.

I also added more verbose text output, showing state of the semaphore.

dabeaz commented 5 years ago

Good catch! Yes, it should definitely wait for them to finish.