protected function createRequest($pid, callable $success = null, callable $failure = null, callable $cancel = null, $timeout = 0.0)
    {
        if ($timeout > 0.0)
        {
            $timeout = $timeout * 1000 + TimeSupport::now();
        }

        return new RequestRecord($pid, $success, $failure, $cancel, $timeout);
    }
protected function createRequest($pid, callable $success = null, callable $failure = null, callable $cancel = null, $timeout = 0.0)
    {
        if ($timeout > 0.0)
        {
            $timeout = $timeout * 1000 + TimeSupport::now();
        }

        return new RequestRecord($pid, $success, $failure, $cancel, $timeout);
    }
protected function createRequest ( $ pid , callable $ success = null , callable $ failure = null , callable $ cancel = null , $ timeout = 0.0 ) { if ( $ timeout > 0.0 ) { $ timeout = $ timeout * 1000 + TimeSupport :: now ( ) ; } return new RequestRecord ( $ pid , $ success , $ failure , $ cancel , $ timeout ) ; }
Create RequestRecord.

@param string $pid
@param callable|null $success
@param callable|null $failure
@param callable|null $cancel
@param float $timeout
@return RequestRecord
Create RequestRecord .