OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Module "mojo/public/js/threading" | 5 // Module "mojo/public/js/threading" |
6 // | 6 // |
7 // Note: This file is for documentation purposes only. The code here is not | 7 // Note: This file is for documentation purposes only. The code here is not |
8 // actually executed. The real module is implemented natively in Mojo. | 8 // actually executed. The real module is implemented natively in Mojo. |
9 // | 9 // |
10 // This module provides a way for a Mojo application implemented in JS | 10 // This module provides a way for a Service implemented in JS |
11 // to exit by quitting the current message loop. This module is not | 11 // to exit by quitting the current message loop. This module is not |
12 // intended to be used by Mojo JS application started by the JS | 12 // intended to be used by Mojo JS application started by the JS |
13 // content handler. | 13 // content handler. |
14 | 14 |
15 while (1); | 15 while (1); |
16 | 16 |
17 /** | 17 /** |
18 * Quits the current message loop, esssentially: | 18 * Quits the current message loop, esssentially: |
19 * base::MessageLoop::current()->QuitNow(); | 19 * base::MessageLoop::current()->QuitNow(); |
20 */ | 20 */ |
21 function quit() { [native code] } | 21 function quit() { [native code] } |
OLD | NEW |