[swift-corelibs-dev] New GCD API change: DispatchWorkItems should be retained by their groups

2016-07-07 Thread Karl via swift-corelibs-dev
Hi, I’d like to propose a change to the new GCD API; that DispatchWorkItems be retained by their groups (and in turn, for them to be retained by their queues). This allows for whoever created the work item to create a weak reference to it, as an indicator for whether or not it has finished exec

Re: [swift-corelibs-dev] New GCD API change: DispatchWorkItems should be retained by their groups

2016-07-07 Thread Pierre Habouzit via swift-corelibs-dev
> On Jul 7, 2016, at 10:01 AM, Karl via swift-corelibs-dev > wrote: > > Hi, > > I’d like to propose a change to the new GCD API; that DispatchWorkItems be > retained by their groups (and in turn, for them to be retained by their > queues). This allows for whoever created the work item to crea

Re: [swift-corelibs-dev] New GCD API change: DispatchWorkItems should be retained by their groups

2016-07-07 Thread Pierre Habouzit via swift-corelibs-dev
> On Jul 7, 2016, at 11:03 AM, Pierre Habouzit wrote: > >> On Jul 7, 2016, at 10:01 AM, Karl via swift-corelibs-dev >> mailto:swift-corelibs-dev@swift.org>> wrote: >> >> Hi, >> >> I’d like to propose a change to the new GCD API; that DispatchWorkItems be >> retained by their groups (and in t