Skip to content

Commit 8c93a5d

Browse files
committed
Merge branch '2.0'
2 parents 682c9bd + 88a403b commit 8c93a5d

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

examples/eventloop/demo.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,4 @@
77
* @see http://www.fast-d.cn/
88
*/
99

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));
10+
fwrite(STDIN, 'hello world');

examples/eventloop/stdin.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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
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));

0 commit comments

Comments
 (0)