Unfortunately, with the recent addition of a type-infering callback function, the overloaded dispatch member function creates an ambiguity when passed to threads.
With dispatch_forever function, a thread for the event queue can be started simply like this:
Unfortunately, with the recent addition of a type-infering
callback
function, the overloadeddispatch
member function creates an ambiguity when passed to threads.With
dispatch_forever
function, a thread for the event queue can be started simply like this:Thanks to @bogdanm for the find/solution