JavaScript performance advice:
1. prefer `async`/`await` over hand-written promise code
2. prefer native promises over userland implementations
https://v8.dev/blog/fast-async https://twitter.com/v8js/status/1062000102909169670 …
You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more
Is there actual performance gains here? How do you test for failures in this case?
Re: performance gains, yes — see the linked article at the start of this thread for details. To catch failures, wrap in try-catch.
That's not valid JS though. Either the first line is somePromise.then(callback); or somePromise.then((value) => callback(value)); I was scratching my head for why you assigned to the `then` property, but assume you missed the angle bracket.
All right, thanks! So no monads for me anymore 
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.