$this->driver->setState((string) $socket, $id);
break;
case self::POLL_INOUT:
- $id[] = $this->driver->onReadable($socket, function($id, $socket) {
- $this->run($socket, self::POLL_IN);
- });
- $id[] = $this->driver->onWritable($socket, function($id, $socket) {
- $this->run($socket, self::POLL_OUT);
- });
+ $id = [
+ $this->driver->onReadable($socket, function($id, $socket) {
+ $this->run($socket, self::POLL_IN);
+ }),
+ $this->driver->onWritable($socket, function($id, $socket) {
+ $this->run($socket, self::POLL_OUT);
+ })
+ ];
$this->driver->setState((string) $socket, $id);
break;
case self::POLL_REMOVE:
list($m6w6, $seekat) = yield [$api->users->m6w6(), $api->repos->m6w6->seekat()];
printf("Hi, my name is %s!\n", $m6w6->login);
printf("Have fun with %s; %s!\n", $seekat->name, $seekat->description);
-});
\ No newline at end of file
+});