Support async replacement
See original GitHub issueThis could be useful when doing an async
calculation of the replacement text (for example, compiling some javascript, etc).
I could try to put together a PR this week 😃
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:5 (1 by maintainers)
Top Results From Across the Web
string-replace-async - npm
Start using string-replace-async in your project by running `npm i string-replace-async`. There are 74 other projects in the npm registry ...
Read more >javascript : Async/await in .replace - Stack Overflow
An easy function to use and understand for some async replace : async function replaceAsync(str, regex, asyncFn) { const promises ...
Read more >Will async/await replace Result type? | by Aaina jain - Medium
Let's say you have a complex asynchronous block of code and on success or failure you have to call completion block. In that...
Read more >Supporting async/await as a module owner - Swift in Depth
As a module owner, you can see it's painless to support both async and “regular” versions of the same asynchronous code. It goes...
Read more >Deprecate the async API and replace it with CLR abstractions ...
In this case, I believe there is more harm in retaining support for the async model than in removing it. The async model...
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
@mrweiner super low without a PR, I don’t have incentive or time to add this feature myself.
@lazd any chance of getting this feature added, given that a PR doesn’t seem to have ever been created?