mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
feat(lsp): jupyter cell continuity using classic scripts (#28769)
This commit is contained in:
parent
24debe9546
commit
0cb2ec22a4
14 changed files with 1261 additions and 397 deletions
|
@ -15,14 +15,10 @@ impl Default for AsyncFlag {
|
|||
|
||||
impl AsyncFlag {
|
||||
pub fn raise(&self) {
|
||||
self.0.close();
|
||||
}
|
||||
|
||||
pub fn is_raised(&self) -> bool {
|
||||
self.0.is_closed()
|
||||
self.0.add_permits(1);
|
||||
}
|
||||
|
||||
pub async fn wait_raised(&self) {
|
||||
self.0.acquire().await.unwrap_err();
|
||||
drop(self.0.acquire().await);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue