Promise type wrapper.
This is equivalent to Promise<WxVoid> when T is void, and Promise<WxResult<T>> otherwise.
Promise<WxVoid>
T
void
Promise<WxResult<T>>
Promise type wrapper.
This is equivalent to
Promise<WxVoid>
whenT
isvoid
, andPromise<WxResult<T>>
otherwise.