Make NotificationQueue::Consumer::messageAvailable noexcept
[folly.git] / folly / io / async / EventBase.cpp
index 1f5ea560f61a34737f1eedfaad3ff142dd717f0d..895e1a4959b2afb16728783c60f55fdb63d89578 100644 (file)
@@ -40,7 +40,7 @@ namespace folly {
 class EventBase::FunctionRunner
     : public NotificationQueue<EventBase::Func>::Consumer {
  public:
-  void messageAvailable(Func&& msg) override {
+  void messageAvailable(Func&& msg) noexcept override {
     // In libevent2, internal events do not break the loop.
     // Most users would expect loop(), followed by runInEventBaseThread(),
     // to break the loop and check if it should exit or not.