And ObjC blocks share instead of copying, which is more like SharedTask. I think that’s another reason why adding copy constructors to WTF::Function that do block-like sharing under the hood is rather attractive.
-Filip > On Jun 13, 2017, at 12:29 PM, Alex Christensen <[email protected]> wrote: > > std::function, c++ lambda, and objc blocks are all interchangeable. > WTF::Functions cannot be used as objc blocks because the latter must be > copyable. Until that changes or we stop using objc, we cannot completely > eliminate std::function from WebKit. _______________________________________________ webkit-dev mailing list [email protected] https://lists.webkit.org/mailman/listinfo/webkit-dev

