diff options
Diffstat (limited to 'crates/libanalysis/src/job.rs')
-rw-r--r-- | crates/libanalysis/src/job.rs | 4 |
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 | } |