aboutsummaryrefslogtreecommitdiff
path: root/crates/libanalysis/src/job.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-31 10:04:33 +0100
committerAleksey Kladov <[email protected]>2018-08-31 10:04:33 +0100
commitd999f4b56803b613dcf354862e1db4b5d2a8a8d0 (patch)
tree4e046b6c2be2ab8fe0f4551262b24c6cc6a11470 /crates/libanalysis/src/job.rs
parentefa6a952b4cb9c9f139822fbf9781a610bba3813 (diff)
cancelation
Diffstat (limited to 'crates/libanalysis/src/job.rs')
-rw-r--r--crates/libanalysis/src/job.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/libanalysis/src/job.rs b/crates/libanalysis/src/job.rs
index 4d393b915..ea1652a26 100644
--- a/crates/libanalysis/src/job.rs
+++ b/crates/libanalysis/src/job.rs
@@ -18,8 +18,8 @@ impl JobHandle {
18 let handle = JobHandle { job_alive: receiver_alive, _job_canceled: sender_canceled }; 18 let handle = JobHandle { job_alive: receiver_alive, _job_canceled: sender_canceled };
19 (handle, token) 19 (handle, token)
20 } 20 }
21 pub fn is_alive(&self) -> bool { 21 pub fn has_completed(&self) -> bool {
22 !is_closed(&self.job_alive) 22 is_closed(&self.job_alive)
23 } 23 }
24 pub fn cancel(self) { 24 pub fn cancel(self) {
25 } 25 }