• Srivatsan Ramesh's avatar
    Add TerminateCancellationToken utility · 416d85c5
    Srivatsan Ramesh authored
    Summary: `getTerminateCancellationToken()` is the public API that can be used to get a cancellation token that'll be cancelled when any of the registered signal (SIGTERM or SIGINT) is received.
    
    Reviewed By: andriigrynenko
    
    Differential Revision: D29883069
    
    fbshipit-source-id: 4270c42316b80afb2c75f54de7e720dcb7a083ca
    416d85c5
TerminateCancellationTokenTest.cpp 1.32 KB