(&self)
| 4882 | /// @returns `true` if an operation was cancelled, `false` if no operation was in progress |
| 4883 | #[napi] |
| 4884 | pub fn cancel(&self) -> bool { |
| 4885 | let session = self.inner.clone(); |
| 4886 | get_runtime().block_on(session.cancel()) |
| 4887 | } |
| 4888 | |
| 4889 | /// Close the session and cancel any active operation. |
| 4890 | /// |
no test coverage detected