Added multichannels and a simple channel-based bus

This commit is contained in:
2018-04-16 02:52:51 +02:00
parent 00d2bead8e
commit f8b43beaf5
9 changed files with 241 additions and 11 deletions

View File

@@ -20,10 +20,10 @@ interface ChannelInterface
public function receive();
/**
* Send a frame of data
* Send a frame of data, returns true on success
*
* @param mixed $data
* @return void
* @return bool
*/
public function send($data);
public function send($data):bool;
}