From 7d919f6fd980ed54785e86892a518f0bdf68f475 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 2 Jul 2024 23:37:54 +0100 Subject: refactor(jupyter): move ZeroMQ server to a separate thread (#24373) Moves the ZeroMQ messaging server to a separate thread. This will allow to run blocking JS code and maintain communication with the notebook frontend. Towards https://github.com/denoland/deno/pull/23592 Towards https://github.com/denoland/deno/pull/24250 Closes https://github.com/denoland/deno/issues/23617 --- cli/ops/jupyter.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/ops') diff --git a/cli/ops/jupyter.rs b/cli/ops/jupyter.rs index edc5f64ec..5a16caf54 100644 --- a/cli/ops/jupyter.rs +++ b/cli/ops/jupyter.rs @@ -45,11 +45,11 @@ pub async fn op_jupyter_broadcast( ( s.borrow::>>().clone(), - s.borrow::>>>().clone(), + s.borrow::>>>().clone(), ) }; - let maybe_last_request = last_execution_request.borrow().clone(); + let maybe_last_request = last_execution_request.lock().await.clone(); if let Some(last_request) = maybe_last_request { let content = JupyterMessageContent::from_type_and_content( &message_type, -- cgit v1.2.3