_benton
Joined 1 year ago
Joined 1 year ago
Or you could promisify the send function and use normal async/await.
let q = Promise.resolve(),
sendAsync = (p) => new Promise(r => send(p, r)),
sendOnce = (p, c, ms) => setTimeout(_ => q.then(_ => sendAsync(p)).then(c), ms)
Or you could actually spin up a new worker thread and get multithreading :Plet send = (payload, callback) => fetch(...).then(callback)
fetch() returns a promise synchronously, but it's not awaited.
"Every person you look at, you can see the universe in their eyes -- if you're really looking." -- George Carlin
Having social anxiety is different from not knowing how to talk to people and make friends. Bill Russel would get so worked up before games he would throw up. But he could also perform.
I think it depends on what you're anxious about. Being scared that people will dislike you is different from being scared of embarrassment and it's different from being scared you don't know what to do in the moment.
Of course all of those can be helped by simply exposing yourself to the situation over and over again. You learn that if you do embarrass yourself or if people dislike you, the world doesn't turn to ash.
I've never worked for a company with thousands of devs but I imagine at a certain point the cost of simply collaborating and managing those devs becomes pretty high too.
Stuff like React Native get it basically for free because their ui is still technically "native".
But apps that rely on web views are screwed and I'm sure Apple will be happy to push devs away from those solutions as they're inferior for users.
Now they just need to figure out a way to push RN apps towards true native.