DispatchGroup

class DispatchGroup : DispatchObject

DispatchGroup improved with AsyncNinja

  • Makes future from of DispatchGroups‘s notify after balancing all enters and leaves

    Declaration

    Swift

    var completionFuture: Future<Void> { get }
  • Makes future from of DispatchGroups‘s notify after balancing all enters and leaves Property DispatchGroup.completionFuture most cover most of your cases

    Declaration

    Swift

    func completionFuture(executor: Executor) -> Future<Void>

    Parameters

    executor

    to notify on

    Return Value

    Future that completes with balancing enters and leaves of the DispatchGroup

  • Convenience method that leaves group on completion of provided Future or Channel

    Declaration

    Swift

    func leaveOnComplete<T>(of completable: T) where T : Completing