Comment

Comment by kjaleshire

Swift actors seem to differentiate from other actor implementations (see Erlang) which have a decoupled message queue. Calling into a Swift actor may be non-blocking, but the result must still be await'd and from the actor's perspective all calls are sequential and synchronous.

By this token, actors seem to be the language-level implementation of a class where all methods are asynchronous, and also being protected by the same lock.

The novel feature seems to be cooperative scheduling amongst actors.

parent kjaleshire 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton