MCPcopy Create free account
hub / github.com/Snapchat/Valdi / isInJsThread

Method isInJsThread

valdi/src/valdi/runtime/JavaScript/JavaScriptRuntime.cpp:3706–3708  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3704 if (_dispatchQueue->isCurrent()) {
3705 onInterrupt(*jsContext);
3706 } else {
3707 _dispatchQueue->async([session]() {
3708 // If our dispatch queue evaluated our call, we mark the current capture as completed
3709 // because it would mean that we finished executing tasks that were in the JS thread before.
3710 session->setCapturedStacktrace(
3711 JavaScriptCapturedStacktrace(JavaScriptCapturedStacktrace::Status::NOT_RUNNING, StringBox(), nullptr));

Callers 1

shouldCallSyncMethod · 0.45

Calls 1

isCurrentMethod · 0.45

Tested by

no test coverage detected