TIL you can promisfy the "on" method on any class that extends EventEmitter and `await` events! Just don't forget to bind. https://gist.github.com/MylesBorins/a1df049260c1db8568bf1a9ced74a8bd …pic.twitter.com/ZrXlUeVTCR
U tweetove putem weba ili aplikacija drugih proizvođača možete dodati podatke o lokaciji, kao što su grad ili točna lokacija. Povijest lokacija tweetova uvijek možete izbrisati. Saznajte više
If you think this API is cool send your gratitude to @matteocollina who also recently added support for async iteration to the on event.https://github.com/nodejs/node/pull/27994 …
TIL you can promisfy the "on" method on any class that extends EventEmitter and `await` events! Just don't forget to bind.
But you probably shouldn't.
Thanks @jaffathecake and @nucknyan for the really enlightening conversationhttps://twitter.com/jaffathecake/status/1222406807148204032 …
I think this is about as close as you can get to an edit button
https://twitter.com/MylesBorins/status/1222410030445711361?s=20 …
What we can and likely should do is add a custom promisify handler for EE.prototype.once that uses EE.once. But yeah, don't break promises this way, it's bad :)
are you going to call this `myles-hapi`?
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.