Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/electron/electron
/ ClearHeldPromiseForTesting
Function
ClearHeldPromiseForTesting
shell/common/api/electron_api_testing.cc:242–244 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
240
}
241
242
void ClearHeldPromiseForTesting() {
243
GetHeldPromise().reset();
244
}
245
246
// Reaches the protected PowerMonitorSource::ProcessPowerEvent().
247
struct PowerEventInjector : base::PowerMonitorSource {
Callers
nothing calls this directly
Calls
1
reset
Method · 0.45
Tested by
no test coverage detected