Adopt await/async/fetch?
See original GitHub issuerelated #19060
Howdy folks!
Hope all of your current projects are going well, Iāve seen some great work come up via my twitter feed.
After a little searching through previous issues, Iāve found a couple regarding async/await and have also spotted relevant sections within the code base however my searches have come up empty regarding the use of fetch. What is everyoneās thoughts on some movements towards async/await/fetch?
Currently the only thing within src
that uses async/await is the loaders/ObjectLoader.js
Within examples
thereās the LDrawLoader.js
ā¦but thatās about it.
Yes, yes, I can see the old functions have been wrapped in new Promise
ās ā¦ but, oh I dunno, does that seem like only half the job done?
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
How to Use Fetch with async/await - Dmitri Pavlutin
How to use fetch() with async/await syntax in JavaScript: fetch JSON data, handle errors, make parallel requests, cancel requests.
Read more >Async Await to The Rescue - Medium
In line 2, await keyword before fetch means that we need to wait until the fetching process is done so we can execute...
Read more >Fetching Remote Data With Async/Await In Recent And Older ...
Learn how to use the new async/await pattern in order to fetch remote data both in recent and in older system versions.
Read more >Async await in Swift explained with code examples - SwiftLee
The fetch data method returns as soon as the async method is called, after which all asynchronous callbacks will happen within the closure....
Read more >Async Await
Async functions to the rescue. async function getData() { const response = await fetch("http://newfinds.com", { method: "POST" }); return await ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Since we have already invested quite a lot of time this year in modernizing the code base, Iām hesitant in doing more in that regard in the next time. Especially if no concrete problem is solved with adapting new language features.
That would change how most of the examples are structured now though. Plus it adds complexity in order to achieve the same š¤·āāļø