Sendable Closures that are also isolated and synchronous?

Mostly agree with and echo the chorus here, but did want to point out that isolated, synchronous, sendable functions can be represented and used if you really want to (e.g. see Observations), but calling them synchronously is pretty awkward, and can subvert data race safety (exhibit A, exhibit B).


FYI this change was merged fairly recently that intends to address these issues.

1 Like