MongoDB\Client::removeSubscriber()
New in version 1.18.
Definition
Parameters
$subscriber
: MongoDB\Driver\Monitoring\Subscriber- A monitoring event subscriber to unregister with this Client.
Errors/Exceptions
MongoDB\Exception\InvalidArgumentException
for errors related to
the parsing of parameters or options.
Behavior
If $subscriber
is not registered with this Client, this function is a no-op.