feat(lsp): jupyter cell continuity using classic scripts (#28769)

This commit is contained in:
Nayeem Rahman 2025-04-17 19:39:32 +01:00 committed by GitHub
parent 24debe9546
commit 0cb2ec22a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 1261 additions and 397 deletions

View file

@ -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);
}
}