Skip to content

v0.5.1

Compare
Choose a tag to compare
@clue clue released this 20 Nov 00:12
· 60 commits to master since this release
  • Feature: Support Promise cancellation for all connectors
    (#71 by @clue)

    $promise = $connector->create($host, $port);
    
    $promise->cancel();
  • Feature: Add TimeoutConnector decorator
    (#51 by @clue)

    $timeout = new TimeoutConnector($connector, 3.0, $loop);
    $timeout->create($host, $port)->then(function(Stream $stream) {
        // connection resolved within 3.0s
    });