On 12 Sep 2016, at 08:53, Quinn The Eskimo! via swift-users 
<swift-users@swift.org> wrote:

> On 12 Sep 2016, at 08:46, Rick Mann <rm...@latencyzero.com> wrote:
> 
>> I had assumed lazy worked like static, which I understand uses dispatch_once 
>> under the hood.
> 
> Correct.

Re-reading the above I realise that it was ambiguous.  Let’s try that again.

                   *                   *                   *

On 12 Sep 2016, at 08:46, Rick Mann <rm...@latencyzero.com> wrote:

> I had assumed lazy worked like static …

No, alas.

> which I understand uses dispatch_once under the hood.

Your understanding of `static` is correct.

Share and Enjoy
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware


_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Reply via email to