Open mykyta-bondarenko opened 6 years ago
Now we can pass only Action into the DispatchQueue.DispatchSync methods. But we can do it with the native API: https://developer.apple.com/documentation/dispatch/dispatchqueue/2016081-sync. Could we add methods with overloading Func<T>?
Action
DispatchQueue.DispatchSync
Func<T>
dispatch_sync_f returns void.
dispatch_sync_f
void
Maybe we could do some hack with the void *context parameter do allow a return value.
void *context
Now we can pass only
Action
into theDispatchQueue.DispatchSync
methods. But we can do it with the native API: https://developer.apple.com/documentation/dispatch/dispatchqueue/2016081-sync. Could we add methods with overloadingFunc<T>
?