|parrotcode: Asynchronous Select Example|
|Contents | Examples|
examples/io/async_select.pir - Asynchronous Select Example
$ ./parrot examples/io/async_select.pir
This program is showing async select utilizing the io_thread event handler. After you started the program, you will see a spinning progress marker, showing that the program is idle. Type some chars at the console (due to console buffering, you have to press <enter> too). These chars will be displayed in bunches of four, as long as more chars are available.