Partially remove dependency on folly async
Summary: This change isolates the usage of folly async from Flipper. Is now self-contained in Flipper Folly schedulers. Users of Flipper can decide not to use the types defined in that header and implement their own. NOTE: changes are minimal, we are just replacing direct calls to folly event base with a scheduler which simply relays this on to folly. Reviewed By: fabiomassimo Differential Revision: D36626483 fbshipit-source-id: add0241caf4af0aa5c3b5c2e7efc2e725f5400ab
This commit is contained in:
committed by
Facebook GitHub Bot
parent
9c7850604c
commit
e44cad5e99
@@ -7,8 +7,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <folly/io/async/EventBase.h>
|
||||
#include <map>
|
||||
#include "FlipperScheduler.h"
|
||||
|
||||
namespace facebook {
|
||||
namespace flipper {
|
||||
@@ -30,14 +30,14 @@ struct FlipperInitConfig {
|
||||
DeviceData deviceData;
|
||||
|
||||
/**
|
||||
EventBase on which client callbacks should be called.
|
||||
Scheduler on which client callbacks should be called.
|
||||
*/
|
||||
folly::EventBase* callbackWorker;
|
||||
Scheduler* callbackWorker;
|
||||
|
||||
/**
|
||||
EventBase to be used to maintain the network connection.
|
||||
Scheduler to be used to maintain the network connection.
|
||||
*/
|
||||
folly::EventBase* connectionWorker;
|
||||
Scheduler* connectionWorker;
|
||||
|
||||
int insecurePort = 9089;
|
||||
int securePort = 9088;
|
||||
|
||||
Reference in New Issue
Block a user