MCPcopy Create free account
hub / github.com/MayaPosch/NymphCast / LineCallback

Method LineCallback

src/server/nc_apps.cpp:246–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244
245
246void NCApps::LineCallback(asIScriptContext* ctx, std::chrono::time_point<std::chrono::steady_clock>* timeOut) {
247 // If the time out is reached we abort the script
248 if (*timeOut < NCApps::timeGetTime()) {
249 ctx->Abort();
250 }
251
252 // It would also be possible to only suspend the script,
253 // instead of aborting it. That would allow the application
254 // to resume the execution where it left of at a later
255 // time, by simply calling Execute() again.
256}
257
258
259// --- CLIENT SEND ---

Callers

nothing calls this directly

Calls 2

AbortMethod · 0.80
timeGetTimeFunction · 0.50

Tested by

no test coverage detected