| 43 | struct 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 |
nothing calls this directly
no outgoing calls
no test coverage detected