The basics

Me: Async is after initiating a process, a worker can then attend to another process while waiting for the initial process to complete. Sync is when the worker has to wait for the process to complete fully before it can move on to something else.

Klover: Solid foundation. But what is that "worker" in practice? When you write async Python or JavaScript code, what’s actually doing the work and deciding "oh, this task is waiting, let me switch to something else"?

Me: Sounds like there is something delegating the tasks and the worker is something like a processing engine?

Klover: Good instinct — there IS something delegating. But first, think about what kinds of tasks would benefit from async. When you call an API, query a database, or read a file — w…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help