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 cOAtJ5P17GN9fgEAbAwnHQ (envelope-from ) for ; Wed, 15 Feb 2023 16:09:07 +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 2HEMJ5P17GNg0gAA9RJhRA (envelope-from ) for ; Wed, 15 Feb 2023 16:09:07 +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 49A3127464 for ; Wed, 15 Feb 2023 16:09:07 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=NegY1BOy; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676473747; 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=h3AOhY7UuaLh98xjKknbxRQFae27EUEcFbGoElfUQPw=; b=A9plXnJf54x6/n7BFcXbgxbZXjrTJBHx0rBph6OfQZMKaw2jfK7IEOI4GO/QTtxxmTkwmL 15EwenqjJYbxqHoWjzYBoBMJNdgnMo9RG/w5F/Bk1qpS7ue3cGTFL3BjFAxVnyfvhNA5Le OWlTZAVMQGYZsL+dVwKmIIYZCdr+8qbRuxPj64ynkaMsVpe0pW6qLcLaPB/wcMGWD4vAd0 JB2rihaqxjqsFuw7Rt7qFpZUpd51rqNWRNHrAPznLwMngjd9dcL2MbcB980ykJCR07KpLD mrhQAPeWMJIhrUyK/WIJERnXiIpIcl1j7Sb+wmtx6YsCIOaGZpOBsrLTS+Da1Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=NegY1BOy; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676473747; a=rsa-sha256; cv=none; b=V4e+QD2qFmNiM33+hDhmcwI0GSit2GYAW3Vlk7a9edIFchzv54K9TzfgO9zrc4SOe9hscM M9KUdscYXMtfXpgLvzP2lMBDPzNSX+lvhb0GILhrKjvcB48z0v14Kmqk7ol+M3HXf67NDl NDwLmqJO6LqiuCxZdgP3EiYDUPhCdW9zyYJDPl4TmdWuID3iO2zlC7AQwUt6r1fnsmpZIu q+beIAVlkPU/oUWvbP2HAHdHqR0Q2z15Olnpfdk5gR+MQU4UeQq0sh0HPdEy8N7F/ZXxF+ MvYNNGHWUQ4yKjGQvKDaLW9KZ+Zr26/MuNuTjMY9T5nT1yeP9c1JtGNVeMNtLQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSJOK-0003rj-VE; Wed, 15 Feb 2023 10:08:16 -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 1pSJOK-0003rS-0b for emacs-orgmode@gnu.org; Wed, 15 Feb 2023 10:08:16 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pSJOH-00062c-Ef for emacs-orgmode@gnu.org; Wed, 15 Feb 2023 10:08:15 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 56D09240680 for ; Wed, 15 Feb 2023 16:08:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1676473691; bh=VwcM+Ep75X2DjMDUAHFRRtvOh1onCO7wl76iYcP5rqo=; h=From:To:Cc:Subject:Date:From; b=NegY1BOy2bbcw8Ul22FGEHp+74fPgGsxD4wqlqFWkEh/AVAWfq+EOgi7ClvxffbND +Lg1mVz90Wx47XPQIHmeZRx1YAzKgmoGc57GyyhoNanLGmQ++gPfYpXwoySDe4ReFr NCuMLdFGIdO6dGAqbe5fFBhjrWvguqmkWnlq3lPxvkYMkgX/UgX4OM7DwBRxBocjOz u0zDFWs0PP5SZ6HwhL1f6RHDqXb3QFYkA4nADuW1TMrkZE9IUKf0Wl0XFLQHGrzK86 aRL+BNeQWT5A+Ccprkm1LIeizIqq/RdGkKWHNl3fXrvH+Fz3P1Atjl7U8quJaGG+vP 2oYvY5+Bsf6yA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PH1fd67bFz6trh; Wed, 15 Feb 2023 16:08:09 +0100 (CET) From: Ihor Radchenko To: Matt Cc: emacs-orgmode Subject: Re: [PATCH] Async evaluation in ob-shell In-Reply-To: <186471d8980.c36aecd0374444.2548279362371712281@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> Date: Wed, 15 Feb 2023 15:08:47 +0000 Message-ID: <87sff73r0g.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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, RCVD_IN_MSPIKE_H2=-0.001, 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: X-Migadu-Queue-Id: 49A3127464 X-Spam-Score: -11.39 X-Migadu-Spam-Score: -11.39 X-Migadu-Scanner: scn0.migadu.com List-Post: 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-Country: US X-Migadu-Flow: FLOW_IN X-TUID: RjgCMYehJhV4 Matt writes: > Checking the final result from the callback is trickier. The following works, but requires advice (which could potentially persist beyond the test) and a delay (which slows testing overall and whose duration likely depends on the hardware the test runs on). Without the delay, I could not get the callback to execute within the test. It would execute when running manually in an Org buffer, however. I'm not sure why. Doesn't (while ... (sleep-for ...)) work? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at