Files
swift-mirror/test/Concurrency/Inputs/hoptomainactorifneeded.h
Michael Gottesman 0e0665bfbd [concurrency] Add support for HopToMainActorIfNeededThunk.
It is behind the experimental flag GenerateForceToMainActorThunks.
2024-10-17 13:31:39 -07:00

5 lines
120 B
C

#define SWIFT_MAIN_ACTOR __attribute__((swift_attr("@MainActor")))
void useClosure(void (^block)() SWIFT_MAIN_ACTOR);