From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GChFFoha72PWQAAAbAwnHQ (envelope-from ) for ; Fri, 17 Feb 2023 11:44:24 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id EDcgFoha72NpHgEA9RJhRA (envelope-from ) for ; Fri, 17 Feb 2023 11:44:24 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 080A326A17 for ; Fri, 17 Feb 2023 11:44:24 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="Q/y9+Rzu"; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676630664; a=rsa-sha256; cv=none; b=ZTLVGcMzUtMYZIXLrcKV8426gZNrzjN75+CkmDG95JU5aXZrQH4uSBQIvDhZiYw8d2gRQ8 pTh8YsP5u875KCLeQL4DwYCamz1nBkdFMjt1oH/fk+VzGBGd2Tb9l7M2W3N1agbF9Gfeh0 EWR6PRDwEPUnKtQQBZjVYvr8t8cuvnYQye39+MFxP0buzdqhaO79cSHcDzoczSeTZsiRd/ FGEaqSfXv+7mxSz3ZxQMwkIsQnfS2fwvzJtg3plusnru23VUSewhMj+XHhKzr2KBL3B5zf zrvdEfJyYbDWzoeg0mec8xHvcSMB1kMcvj7Q+13poDgex2N72Y85bpYCkRACQA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="Q/y9+Rzu"; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676630664; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=95XqQV2laLKKVPs0+cO8rpithL9UCqf7fc+paG/UGG8=; b=MtgSag7Kx/EIVfqXkqUTJVJScCzkxNieiQXtPWlRExtaF346g3Sqkc9RKkJxF0AvdM3BAI jbIGbPbAfOcsibta3qYjma/84TMwNWiUJva+xac6FbTZ88dWdcboBcNY5Cypi/uqa7FGU9 ZeY9DQx7wCh01SHv1/XXqL/xkIA1wAW/WjJRjQNEDcOBwB8uShIaHbHssira91mmiG2q6J 4fD/r6tWzyUdYKbGOlMhlIeT9mV+gsw+8zg4h4q0NdorWpD78gBkg60tWT7Z5ZGVpXG5/2 b1ib5qcYN5+Lwzd+6U9xnD0WCdnkXeC8KWR6Q5jJb4noKqQJZrjW6loxykaqxQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSyDg-00034g-81; Fri, 17 Feb 2023 05:44:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pSyDf-00034Y-7p for emacs-orgmode@gnu.org; Fri, 17 Feb 2023 05:43:59 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pSyDd-0007fD-Ia for emacs-orgmode@gnu.org; Fri, 17 Feb 2023 05:43:59 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id F1E152403F0 for ; Fri, 17 Feb 2023 11:43:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1676630634; bh=dbzCmdakiJsas5/5W+Z8cCUSc1HbF5zp8u3SdBMsfU8=; h=From:To:Cc:Subject:Date:From; b=Q/y9+RzuViGDbrp8IkvVBJ/3iFTwTPSR+2qivNbPJoEt6XDm01bLCMStmLTKsBBcf SvHmt576DIIlHX2oGwXQiGSzp6aWbsluCM0EhNGO32Wfwe/N25ld9ApA6QlPVe39Dw mceB3tpFOVIofQf/YXpw7uoRvXTp16t4viylmSVQ6yNi1tNyj4MHADwoBuQRkWdcx6 BIO9tpd5KpJpzOe7M6xkCIevI1wpg3GbF43XblNlwllwrng6GB0WKbUxF+M1q8NgJq wWnTLeBY97BhixIg3lF7MMB3O42EYdUp2gaNlo6RZfN3HC6uVd8UNiPpQGG1DXc8ml KUKTyd/OgnkLQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PJ7hm6qnWz6tnD; Fri, 17 Feb 2023 11:43:52 +0100 (CET) From: Ihor Radchenko To: Matt Cc: emacs-orgmode Subject: Re: [PATCH] Async evaluation in ob-shell In-Reply-To: <18658639a30.dec640641420614.2364646537016397698@excalamus.com> References: <186283d230a.129f5feb61660123.3289004102603503414@excalamus.com> <87v8kd8zzw.fsf@localhost> <1863472efe9.10fdd5ba4258906.5972264927968042941@excalamus.com> <87y1p7axpe.fsf@localhost> <1863d69188f.11e078bd1228881.451172865246440158@excalamus.com> <87fsbcbf47.fsf@localhost> <186471d8980.c36aecd0374444.2548279362371712281@excalamus.com> <87sff73r0g.fsf@localhost> <18658639a30.dec640641420614.2364646537016397698@excalamus.com> Date: Fri, 17 Feb 2023 10:44:28 +0000 Message-ID: <87lekwd10z.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: X-Migadu-Queue-Id: 080A326A17 X-Spam-Score: -11.71 X-Migadu-Spam-Score: -11.71 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-TUID: u9dCiZS/1aFt Matt writes: > > Doesn't (while ... (sleep-for ...)) work? > > I'm afraid I don't follow what you mean. What I mean is: 1. Execute src block asynchronously 2. Run (while ... (sleep-for ...)) until the result appears (up to threshold seconds) 3. Check the result as usual or fail the test when we wait too long and no results is added. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at