#async

3 posts · Last used 13d

Back to Timeline
@aral@mastodon.ar.al · Feb 27, 2026
🥳 New Kitten Release This one fixes a bug that you would have encountered had you had an asynchronous component (component with asynchronous render method) nested more than one-level deep within synchronous components. (Kitten’s html renderer transparently supports both synchronous and asynchronous render methods.) So, this (taken from my unit test), for example, works correctly now: ```js class AsynchronousOtherName extends KittenComponent { async html () { await new Promise(resolve => setTimeout(resolve, 10)) return kitten.html`Balkan` } } class SynchronousName extends KittenComponent { /* NOT async */ html () { return kitten.html`Aral <${AsynchronousOtherName.connectedTo(this)} />` } } class SynchronousTemplate extends KittenComponent { html ({ SLOT }) { return kitten.html`[Before slot]${SLOT}[After slot]` } } class MyPage extends KittenPage { html () { return kitten.html` <${SynchronousTemplate.connectedTo(this)}> This should render all at once after a short delay.

Hello, <${SynchronousName.connectedTo(this)} />

3
1
3
In reply to
@aral__dup_4490@mastodon.ar.al · Mar 02, 2026
🥳 New Kitten Release I just reworked the fix for this to simplify the Kitten renderer (as this fix introduced a regression with components getting instantiated multiple times due to the fall-through logic between asynchronous and synchronous rendering). The renderer now treats every component render function as asynchronous, thereby avoiding the issue entirely. https://kitten.small-web.org Enjoy! 💕 #Kitten #KittenReleases #SmalWeb #SmallTech #web #dev #components #async #rendering
8
1
4
@musicmatze@social.linux.pizza · Feb 02, 2026
Okay, I now have to write a #async #dag data structure, where each node can be loaded, retrieved, added and possibly also removed in an async way. #rust #rustlang #softwaredevelopment #opensource
2
1
0

You've seen all posts