Re: [swift-users] Threads and weak references

2017-09-25 Thread Joe Groff via swift-users
> On Sep 22, 2017, at 2:38 AM, Howard Lovatt via swift-users > wrote: > > Hi, > > I was using a weak reference in a concurrent application and and the main > thread wasn't seeing an update to a class's property made by another thread. > If I replaced the weak reference with a closure, the p

[swift-users] Threads and weak references

2017-09-22 Thread Howard Lovatt via swift-users
Hi, I was using a weak reference in a concurrent application and and the main thread wasn't seeing an update to a class's property made by another thread. If I replaced the weak reference with a closure, the problem went away. Is there any documentation that describes this behaviour? Thanks in a