MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / start

Method start

Libraries/Await/Await.cpp:730–742  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

728Result AwaitTask::await_resume() const { return result(); }
729
730Result AwaitTask::start()
731{
732 if (not handle)
733 {
734 return Result::Error("AwaitTask is invalid");
735 }
736 if (handle.promise().started)
737 {
738 return Result::Error("AwaitTask already started");
739 }
740 handle.promise().started = true;
741 return Result(true);
742}
743
744void AwaitTask::resume()
745{

Callers 6

update_library_mdFunction · 0.45
spawnMethod · 0.45
await_suspendMethod · 0.45
startCurrentBufferMethod · 0.45
startRemainingReceiveMethod · 0.45
startRemainingReadMethod · 0.45

Calls 2

ErrorEnum · 0.50
ResultClass · 0.50

Tested by

no test coverage detected