on('data', fn(Joke $joke) => print($joke . PHP_EOL)); $loop->addPeriodicTimer(0.2, fn() => print('.' . PHP_EOL)); $loop->run();