The current v7 implementation of the Dispatcher protocol requires function wrappers, which create significant noise and maintenance burden.
SE-0299, which provides a way for protocol types to simulate the presence of static members, is likely to make the wrappers unnecessary.
The implementation of SE-0299 is complete and due to be released in Swift 5.5. Use of this feature would make Swift 5.5 a prerequisite for v7.
The current v7 implementation of the Dispatcher protocol requires function wrappers, which create significant noise and maintenance burden.
SE-0299, which provides a way for protocol types to simulate the presence of static members, is likely to make the wrappers unnecessary.
The implementation of SE-0299 is complete and due to be released in Swift 5.5. Use of this feature would make Swift 5.5 a prerequisite for v7.