DispatchGroup
class DispatchGroup : DispatchObject
DispatchGroup improved with AsyncNinja
-
Makes future from of
DispatchGroups
‘s notify after balancing all enters and leavesDeclaration
Swift
var completionFuture: Future<Void> { get }
-
Makes future from of
DispatchGroups
‘s notify after balancing all enters and leaves PropertyDispatchGroup.completionFuture
most cover most of your casesParameters
executor
to notify on
Return Value
Future
that completes with balancing enters and leaves of theDispatchGroup
-
Convenience method that leaves group on completion of provided Future or Channel
Declaration
Swift
func leaveOnComplete<T>(of completable: T) where T : Completing