wuhao5 added a comment.

> Can I ask why you want a weak reference to a block in the first place?  It 
> seems basically useless — blocks can certainly appear in reference cycles, 
> but I don't know why you'd ever try to break that cycle with the block 
> instead of somewhere else.

The simplified version:

auto b = ^{

  if (check) {
    dispatch_after(queue, 1, b);
  } else {
   // done.
  }

};
dispatch_after(queue, 1, b);


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58514/new/

https://reviews.llvm.org/D58514



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to