b5a613c378
This updates the IOHandle type in eventhandler_fuchsia to use zx_port_cancel_key to cancel outstanding asynchronous waits instead of the (older) zx_port_cancel. The cancel_key operation requires only the key used to register the initial wait and not the originating handle. This means that the IOHandle operation no longer has to store the original handle or worry about its lifetime. Tested: Patched locally in a test embedder using this logic Change-Id: Iec0ec632a7dd438a34e482a12b5b298be56ce476 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/501840 Reviewed-by: Zijie He <zijiehe@google.com> Auto-Submit: James Robinson <jamesr@google.com> Reviewed-by: Ryan Macnak <rmacnak@google.com> Commit-Queue: Ryan Macnak <rmacnak@google.com>