socketry / async

An awesome asynchronous event-driven reactor for Ruby.
MIT License
2.12k stars 86 forks source link

Guide: ensure barrier is in scope #253

Closed olleolleolle closed 1 year ago

olleolleolle commented 1 year ago

This change avoids a NoMethodError on the barrier local variable. And also a LoadError, with the Async::Barrier constant.

I was following the guide, and when I ran my code, I found these issues, and this change fixed them.

Types of Changes

Contribution

ioquatix commented 1 year ago

Thanks!