dabeaz / curio

Good Curio!
Other
4.04k stars 244 forks source link

add join for tasks in semaphore example #280

Closed alekibango closed 6 years ago

alekibango commented 6 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 6 years ago

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