yannickl / AwaitKit

The ES8 Async/Await control flow for Swift
MIT License
750 stars 55 forks source link

Optional value - Elvis Operator #19

Open igordeoliveirasa opened 6 years ago

igordeoliveirasa commented 6 years ago

Hi,

How could I pass an instruction which uses Elvis Operator? Example:

try await(myObject?.myPromiseMethod())

Thanks.

yannickl commented 6 years ago

For the moment there is no way to do that except that unwrap the optional before to call the method.