(name)
| 20 | } |
| 21 | |
| 22 | function 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 | |
| 35 | function idle_source(handler, priority) { |
| 36 | let s = GLib.idle_source_new(); |
no test coverage detected