MCPcopy Create free account
hub / github.com/FoundationDB/fdb-document-layer / create

Method create

src/ExtMsg.actor.h:45–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43struct ExtMsg : IDispatched<ExtMsg, int32_t, std::function<ExtMsg*(ExtMsgHeader*, const uint8_t*)>>,
44 ReferenceCounted<ExtMsg> {
45 static Reference<ExtMsg> create(ExtMsgHeader* header, const uint8_t* body, Promise<Void> finished) {
46 Reference<ExtMsg> r(dispatch(header->opCode)(header, body));
47 r->break_when_finished = finished;
48 return r;
49 }
50
51 /**
52 * This promise will be broken only when this class is destructed, which triggers

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected