8000 Support to asynchronous functions in fakelibs/os.py and for readFile and writeFile ? · Issue #116 · PythonJS/PythonJS · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Support to asynchronous functions in fakelibs/os.py and for readFile and writeFile ? #116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
LeoIannacone opened this issue Jul 15, 2014 · 1 comment

Comments

@LeoIannacone
Copy link

Hi,

is it possible add asynchronous support by adding a callback call to the *Sync functions used in os.py fakelibs? (also in runtime/builtins.py for read and write files).

Something like:

 def exists(self, path, cb=None):
    if cb:
       return _fs.exists(path, cb)
    return _fs.existsSync(path)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
@LeoIannacone and others
0