Open krazyjakee opened 7 years ago
Not true. The read/parse logic could be CPU intensive and block for quite awhile. With promises and async/await, it shouldn't make much difference, except for not blocking the main thread (which is a good thing!).
@mhamann doh! I should have thought about that. I would be satisfied with a promise/asyncawait solution too but then may as well do a total ES8 rewrite. I don't have time for it unfortunately.
There is no reason the parser should run asynchronously when passing raw html as there is no request to be made.
Usage should be something like...