fix for negative delay in runAfterDelay
authorUmair Sadiq <usadiq@fb.com>
Fri, 4 Dec 2015 05:38:07 +0000 (21:38 -0800)
committerfacebook-github-bot-4 <folly-bot@fb.com>
Sun, 6 Dec 2015 03:20:18 +0000 (19:20 -0800)
commitf94bbfebcbd7802d81102c084784115b70930e8e
treeef5e749c00e6a88c5a9b61af6776ea3eda90e036
parentfd4ce7d13aa50de6023102b06b2aaa5e9b7d720f
fix for negative delay in runAfterDelay

Summary: Currently, the tryRunAfterDelay implicitly converts a negative delay in int to unsigned int. With this change, the api makes it clear than only unsinged int is accepted as valid delay

Reviewed By: yfeldblum

Differential Revision: D2710034

fb-gh-sync-id: cb3c6b91bb86bbe07fa0e590b2ea871242d19745
folly/io/async/EventBase.cpp
folly/io/async/EventBase.h