AwaitKit icon indicating copy to clipboard operation
AwaitKit copied to clipboard

Optional value - Elvis Operator

Open igordeoliveirasa opened this issue 7 years ago • 1 comments

Hi,

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

try await(myObject?.myPromiseMethod())

Thanks.

igordeoliveirasa avatar Sep 28 '17 13:09 igordeoliveirasa

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

yannickl avatar Oct 01 '17 20:10 yannickl