src/CommandBus.php
public function handle($command): CancellablePromiseInterface
    {
        return futurePromise($this->loop, $command)->then(function ($command) {
            return resolve($this->commandBus->handle($command));
        });
    }
public function handle($command): CancellablePromiseInterface
    {
        return futurePromise($this->loop, $command)->then(function ($command) {
            return resolve($this->commandBus->handle($command));
        });
    }
Executes the given command and optionally returns a value.

@param object $command

@return CancellablePromiseInterface