We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 682c9bd + 88a403b commit 8c93a5dCopy full SHA for 8c93a5d
examples/eventloop/demo.php
@@ -7,11 +7,4 @@
7
* @see http://www.fast-d.cn/
8
*/
9
10
-use FastD\Swoole\EventLoop;
11
-
12
-include __DIR__ . '/../../vendor/autoload.php';
13
-include __DIR__ . '/BaseEvent.php';
14
15
-$loop = new EventLoop();
16
17
-$loop->set(new BaseEvent(STDIN));
+fwrite(STDIN, 'hello world');
examples/eventloop/stdin.php
@@ -0,0 +1,17 @@
1
+<?php
2
+/**
3
+ * @author jan huang <bboyjanhuang@gmail.com>
4
+ * @copyright 2016
5
+ *
6
+ * @see https://www.github.com/janhuang
+ * @see http://www.fast-d.cn/
+ */
+
+use FastD\Swoole\EventLoop;
+include __DIR__ . '/../../vendor/autoload.php';
+include __DIR__ . '/BaseEvent.php';
+$loop = new EventLoop();
+$loop->set(new BaseEvent(STDIN));
0 commit comments