Concurrency runtime never calls swift_task_enqueueMainExecutor_hook #63104
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
concurrency
Feature: umbrella label for concurrency language features
runtime
The Swift Runtime
Description
The hook
swift_task_enqueueMainExecutor_hookis exported for users to implement custom main executor behavior but the concurrency runtime never calls this hook even though someone assigns a closure to it. On the other handswift_task_enqueueGlobal_hookworks as expected.Steps to reproduce
To reproduce clone the package and
swift run.Expected behavior
It is expected that
enqueueMainExecutorwould be printed a couple of times.Actual behavior
The output doesn't have any
enqueueMainExecutors printed. The actual output is of the form:Environment
The text was updated successfully, but these errors were encountered: