use folly::FunctionRef for EventBase::run(ImmediatelyOrRun)?InEventBaseThreadAndWait
authorEric Niebler <eniebler@fb.com>
Tue, 20 Dec 2016 22:56:37 +0000 (14:56 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 20 Dec 2016 23:03:02 +0000 (15:03 -0800)
commit054b2c1a15f740d59b34273030a582ec26c93794
tree06d0e24e12e27e0d2f043753e90913ed13d73960
parent219f48ef6f5fb7a32301fea19c361f6db12cb23c
use folly::FunctionRef for EventBase::run(ImmediatelyOrRun)?InEventBaseThreadAndWait

Summary: folly::FunctionRef never allocates memory and is cheaper to pass around. Use it in the interface of EventBase where we can.

Reviewed By: yfeldblum

Differential Revision: D4353992

fbshipit-source-id: 259c5214ed48d30981eb8e38b062aad31d80a080
folly/io/async/EventBase.cpp
folly/io/async/EventBase.h