• Yedidya Feldblum's avatar
    Template fibers baton timed-wait over the deadline types · 8e6901ad
    Yedidya Feldblum authored
    Summary:
    [Folly] Template fibers baton timed-wait over the deadline types, rather than over the timeout types and rather than fixing a single timeout type.
    
    Templating it over the deadline types permits specifying the clock and permits passing a single deadline through unchanged through multiple time-delayed layers of code without skew, and templating it rather than fixing it over a single timeout type permits caller-specified fine-grained or coarse-grained timings.
    
    Currently, the `EventBase` timers do not parameterize over the deadline types, so the fiber version of timed-wait must for now convert to a fixed timeout type.
    
    Reviewed By: andriigrynenko
    
    Differential Revision: D15448177
    
    fbshipit-source-id: aa3fdbffdcb83cbfd1571780ba431a1004beb347
    8e6901ad
Baton.h 8.16 KB