mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
13 lines
375 B
JavaScript
13 lines
375 B
JavaScript
export default {
|
|
// allow pyterminal checks to bootstrap
|
|
is_pyterminal: () => false,
|
|
|
|
/**
|
|
* 'Sleep' for the given number of seconds. Used to implement Python's time.sleep in Worker threads.
|
|
* @param {number} seconds The number of seconds to sleep.
|
|
*/
|
|
sleep(seconds) {
|
|
return new Promise(($) => setTimeout($, seconds * 1000));
|
|
},
|
|
};
|