-
Notifications
You must be signed in to change notification settings - Fork 155
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
synchronous functions #64
Comments
If you're interested in this for workers, there's the Sync Filesystem API for workers: https://www.html5rocks.com/en/tutorials/file/filesystem-sync/ Other than that, I would think making promised-based APIs and using ES7 |
Thank you! I am about reading the links right now and will give feedback if I have any questions, thanks! |
https://www.html5rocks.com/en/tutorials/file/filesystem-sync/ I would further fallback to localStorage, but the quota is limited there? I am now reading about https://www.google.de/?gws_rd=ssl#q=indexedDB+sync I also provide a method frdl.wait https://github.com/frdl/-Flow/blob/master/api-d/4/js-api/library.js/core/plugin.core.js#L3810 but I think this one is "blocking itself?" ( https://github.com/frdl/-Flow/blob/master/api-d/4/js-api/library.js/core/plugin.core.js#L12381 ???) Edit: I also use your indexedDB shim! |
Yes I don't think this API is a good fit for you if you want to to have On Fri, Nov 11, 2016, 11:38 AM Till Wehowski [email protected]
|
"What's the reason for needing synchronous?
As you can see, the css compiler trys to convert all url(...) image referals into data:uris, what happens asynchronous (promise=frdl.getImageDataUri). I just would olike to use filer/filesystemAPI to cache this compile css files and load it if needed. The one solution I imagine spontaneous would be to wrap the requireCSS/its callback into another wrapper. But this way I fear to run into a "callback hell"...? P.S.: Yes, workers are on my next plan by the way, but they don't turn anything into synchronous? |
Hi Ebidel, Edit: Sorry, I have to correct: This only works in filesystemAPI enabled browser, not with the indexedDB/filer shim!?! |
Hello,
I know maybe it is without of you scope: I am interested to make some filer functions synchronous.
Before I start to reinvent the wheel, I would like to ask if you can get me a hint where to start?
regards,
Till
The text was updated successfully, but these errors were encountered: