duemunk / Async

Syntactic sugar in Swift for asynchronous dispatches in Grand Central Dispatch
MIT License
4.59k stars 316 forks source link

Add notify method to AsyncGroup #82

Closed 100mango closed 7 years ago

100mango commented 8 years ago

support

let group = AsyncGroup()
group.background {
print("This is run on the background queue")
}
group.background {
print("This is also run on the background queue in parallel")
}
group.notify {
print("Both asynchronous blocks are complete")
}
eneko commented 8 years ago

:+1:

100mango commented 8 years ago

@duemunk @eneko updated~

100mango commented 8 years ago

@duemunk @eneko Any feedback?

duemunk commented 8 years ago

@100mango I'm sorry for just leaving this working hanging. I'm don't use groups myself, so I kind of like the current solution since it is fairly similar to the GCD syntax.

Though a lot is going to change a lot with Swift 3.0 (se here), and Async probably isn't going to be as useful after that.

eneko commented 7 years ago

Hello @duemunk,

It's been a while since this PR was open and seems to be outdated now. Unless you are planning to do any work on it, I would suggest closing it.

What do you think?

Regards, Eneko