101010.pl is one of the many independent Mastodon servers you can use to participate in the fediverse.
101010.pl czyli najstarszy polski serwer Mastodon. Posiadamy wpisy do 2048 znaków.

Server stats:

482
active users

#promises

0 posts0 participants0 posts today

New Kitten release

• Fix: messages that are promises are properly awaited before being sent.

kitten.small-web.org

Kitten automatically and transparently handles asynchronous content in your templates for you so you don’t have to worry about it. One place where this wasn’t working properly is if you addressed `this.component` to stream a custom update of your component manually instead of calling the `this.update()` method of Kitten component instances.

e.g.,

```js
export default class AdminPage extends kitten.Page {
// …
onSelectedPost (data) {
this.send(kitten.html`<${this.component} postId='${data.selectedPost.postId}' />`)
}
}
```

:kitten:💕

Key Points:
➡️ JavaScript does not natively provide an API to cancel a regular Promise.
➡️ Promise.withResolvers() returns an object with a new Promise and functions to resolve or reject it.
➡️ Cancelable tasks can be created using Promise.withResolvers() by exposing a cancel method.
➡️ AbortController can also be used to cancel tasks in JavaScript.

webdeveloper.beehiiv.com/p/can

Web DeveloperHow to Annul Promises in JavaScriptCreating Cancelable Tasks in JavaScript with Promise.withResolvers and AbortController

I guess the original is by Tina Turner (written by her sister) but I can’t pass up a chance to post a Nina Simone song for #JukeboxFridayNight #Promises (not kept in this case)

Your lies are getting rusty
Can't believe nothing you say
'Cause I'm around and I see what you do
You know you're funkier than a mosquito's tweeter

Nina Simone
Funkier Than a Mosquito’s Tweeter
youtu.be/58cOwqbAZEw

youtu.be- YouTubeEnjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.