[Pitch] API to run a closure off of an actor (on the concurrent executor)

I believe Mr Milchick would be positively enamored by the lexical discourse here, Miss Huang however would agree with those striving for a simpler approach.

How about

func someLongExpensiveOperation() async { }

actor MyActor {
  func waitForLongOperation() async {
    nonisolated await someLongExpensiveOperation()
  }
}
1 Like