I wonder if SE-0315: Placeholder types
could help, allowing you to write something like let myClosure: _ async = doSomething
, though that doesn't seem to help specifying the "non async" case.
4 Likes
I wonder if SE-0315: Placeholder types
could help, allowing you to write something like let myClosure: _ async = doSomething
, though that doesn't seem to help specifying the "non async" case.