return range from AsyncIO::cancel(), fix test
authorPhilip Pronin <philipp@fb.com>
Fri, 12 May 2017 23:07:57 +0000 (16:07 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 12 May 2017 23:19:53 +0000 (16:19 -0700)
commit7728c4b3b4a0122c2728e3ef548aa4d356ba7adf
treee3fa6863be4c304cd4fb73775f64a76614eec672
parentf0daf647cd1435d8511b0fd8c64b31ed37e8beb8
return range from AsyncIO::cancel(), fix test

Summary:
Return not just number of cancelled ops, but all of them as well.
Test was incorrectly assuming `wait(1)` will return exactly one operation, fix
that as well.

Reviewed By: ot

Differential Revision: D5054684

fbshipit-source-id: 1c53c3f7ba855d1fcfeac8b1b27f90f0872d2c21
folly/experimental/io/AsyncIO.cpp
folly/experimental/io/AsyncIO.h
folly/experimental/io/test/AsyncIOTest.cpp