Comment

Comment by MaulingMonkey

"My point is, move these IO actions to another thread; the code in that thread is good old synchronous/threaded code."

Sure. But how do you handle that? IO results need to be communicated back to the UI thread somehow.

Throwing together a whole new thread+stack against a named method that communicates back via explicit messages (or however you want to get the results of IO back to the UI thread) seems like a bit much if all you want to do is download a motd.txt and stuff it in a label.

parent MaulingMonkey 12 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton