src/Repository.php
public function getTailableCursor($filters = [], $options = [])
    {
        $options['cursorType'] = \MongoDB\Operation\Find::TAILABLE_AWAIT;

        return $this->collection->find($this->castQuery($filters), $options);
    }
public function getTailableCursor($filters = [], $options = [])
    {
        $options['cursorType'] = \MongoDB\Operation\Find::TAILABLE_AWAIT;

        return $this->collection->find($this->castQuery($filters), $options);
    }
public function getTailableCursor ( $ filters = [ ] , $ options = [ ] ) { $ options [ 'cursorType' ] = \ MongoDB \ Operation \ Find :: TAILABLE_AWAIT ; return $ this -> collection -> find ( $ this -> castQuery ( $ filters ) , $ options ) ; }
Get tailable cursor for query

@param  array  $filters Filters of query
@param  array  $options Option (Tailable setted as default)
@return \MongoDB\Driver\TailableCursor          A tailable cursor
Get tailable cursor for query