MCPcopy Create free account
hub / github.com/GNOME/gjs / quit

Function quit

modules/script/mainloop.js:22–33  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

20}
21
22function quit(name) {
23 if (!_mainLoops[name])
24 throw new Error('No main loop with this id');
25
26 let loop = _mainLoops[name];
27 _mainLoops[name] = null;
28
29 if (!loop.is_running())
30 throw new Error('Main loop was stopped already');
31
32 loop.quit();
33}
34
35function idle_source(handler, priority) {
36 let s = GLib.idle_source_new();

Callers 1

quitCommandFunction · 0.50

Calls 1

is_runningMethod · 0.45

Tested by

no test coverage detected