The win32-event library provides an interface to Windows event objects. An event object is a synchronization object whose state can be explicitly set to a signaled state. Event objects are useful in sending a signal to a thread indicating that a particular event has occurred.
Gemfile gem 'win32-event', '~> 0.5.2'
install gem install win32-event -v 0.5.2