You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SleeperHandler::addNotifier() now returns SleeperHandlerEntry. This is a thread-safe object used to create SleeperNotifier, and should be passed to the destination thread.
SleeperHandler::addNotifier() no longer accepts SleeperNotifier. Notifiers are now created using SleeperHandlerEntry::createNotifier().
SleeperHandler::removeNotifier() now accepts int $notifierId. This allows the main thread to retain only the notifier ID for later cleanup, saving memory.
SleeperNotifier is no longer thread-safe, and must be instantiated within the destination thread using SleeperHandlerEntry::createNotifier(). Since the notification delivery does not require the notifier itself to be a thread-safe object, this allows for better performance by avoiding unnecessary locking and the inherent overhead of thread-safe objects.