I am experimenting with creation of global actor MyGlobalActor with a custom serial executor that is supposedly dispatching / enqueueing tasks on a specific dispatch queue MyGlobalActorQueue.
When I try to apply the global actor to a custom service (class) type, calls to that function don't seem to use the serial executor I created, the way I checked is by putting a breakpoint on the executor enqueue function.
Am I doing something wrong, or is this a bug?
One extra note is to watch out that the actors executor lifetime extends beyond the actors lifetime — the “unowned executor” quite literarily is not owned (retained) by anything, so make sure the actor or some global thing retains it while things are supposed to be running on it
Thats a great Idea, I actually opened that documentation and expected to find a sample / programming guide on how to create one before looking on the forums.
When it comes to the swift evolution, I do look for things there quite often, but sometimes, terminology used in the swift evolution titles might not come obvious to users of swift (as opposed to ones developing it). I have no idea on how to improve that really.
I guess my main point is that the proposals are a treasure trove of information that is usually not covered elsewhere in docs, it would be amazing if we could find a way to consolidate that information somehow.