src/Queue/MongoQueue.php
function release($id, $queue = null)
    {
        if ( $id instanceof iPayloadQueued ) {
            $arg   = $id;
            $id    = $arg->getUID();
            $queue = $arg->getQueue();
        }

        try {
            $this->collection->deleteOne([
                '_id'   => new MongoDB\BSON\ObjectID($id),
                'queue' => $this->_normalizeQueueName($queue),
            ]);
        } catch (\Exception $e) {
            throw new exWriteError('Error While Write To Mongo Client.', $e->getCode(), $e);
        }
    }
function release($id, $queue = null)
    {
        if ( $id instanceof iPayloadQueued ) {
            $arg   = $id;
            $id    = $arg->getUID();
            $queue = $arg->getQueue();
        }

        try {
            $this->collection->deleteOne([
                '_id'   => new MongoDB\BSON\ObjectID($id),
                'queue' => $this->_normalizeQueueName($queue),
            ]);
        } catch (\Exception $e) {
            throw new exWriteError('Error While Write To Mongo Client.', $e->getCode(), $e);
        }
    }
function release ( $ id , $ queue = null ) { if ( $ id instanceof iPayloadQueued ) { $ arg = $ id ; $ id = $ arg -> getUID ( ) ; $ queue = $ arg -> getQueue ( ) ; } try { $ this -> collection -> deleteOne ( [ '_id' => new MongoDB \ BSON \ ObjectID ( $ id ) , 'queue' => $ this -> _normalizeQueueName ( $ queue ) , ] ) ; } catch ( \ Exception $ e ) { throw new exWriteError ( 'Error While Write To Mongo Client.' , $ e -> getCode ( ) , $ e ) ; } }
Release an Specific From Queue By Removing It

@param iPayloadQueued|string $id
@param null|string           $queue

@return void
@throws exIOError
Release an Specific From Queue By Removing It