Teach CrossThreadBind* how to use CrossThread*Function as a functor.
This allows "currying" of WTF cross-thread functions to be done using CrossThreadBindOnce and CrossThreadBindRepeating (but not with base::Bind). This is a reasonably common pattern to do with base callbacks and is a reasonable thing to want from WTF's wrappers. Bug: 992422 Change-Id: I9d3311e0362ef25657c31ce952becdfb7d0bc81a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1750043 Auto-Submit: Jeremy Roman <jbroman@chromium.org> Commit-Queue: Kentaro Hara <haraken@chromium.org> Reviewed-by:Kentaro Hara <haraken@chromium.org> Cr-Commit-Position: refs/heads/master@{#686262}
Showing
Please register or sign in to comment