MCPcopy Create free account
hub / github.com/apple/foundationdb / sendResult

Function sendResult

fdbserver/tester.actor.cpp:557–563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

555
556template <class T>
557void sendResult(ReplyPromise<T>& reply, Optional<ErrorOr<T>> const& result) {
558 auto& res = result.get();
559 if (res.isError())
560 reply.sendError(res.getError());
561 else
562 reply.send(res.get());
563}
564
565ACTOR Future<Void> runWorkloadAsync(Database cx,
566 WorkloadInterface workIface,

Callers 6

whenFunction · 0.85
fireMethod · 0.85
errorMethod · 0.85
fireMethod · 0.85
errorMethod · 0.85
setMappedFutureMethod · 0.85

Calls 5

getMethod · 0.65
isErrorMethod · 0.45
sendErrorMethod · 0.45
getErrorMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected