Fix Experimental Async API (#7391)

This commit is contained in:
ijrsvt
2020-03-02 22:24:20 -06:00
committed by GitHub
parent 580b017b43
commit 584645cc7d
3 changed files with 27 additions and 28 deletions
+1
View File
@@ -1399,6 +1399,7 @@ void CoreWorker::GetAsync(const ObjectID &object_id, SetResultCallback success_c
void CoreWorker::SubscribeToAsyncPlasma(PlasmaSubscriptionCallback subscribe_callback) {
plasma_notifier_->SubscribeObjAdded(
[subscribe_callback](const object_manager::protocol::ObjectInfoT &info) {
// This callback must be asynchronous to allow plasma to receive objects
subscribe_callback(ObjectID::FromPlasmaIdBinary(info.object_id), info.data_size,
info.metadata_size);
});