From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Question about asynchronous calls Date: Wed, 06 Nov 2013 19:49:58 +0100 Organization: A noiseless patient Spider Message-ID: References: <19b9cc6b-28a4-45e4-939c-7720ae5666b9@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 6 Nov 2013 18:49:54 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="2b3884a634d8f846e0712b4e3a92507a"; logging-data="21597"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18WpRPxzBwWLmD1MH0t74+N" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 In-Reply-To: <19b9cc6b-28a4-45e4-939c-7720ae5666b9@googlegroups.com> Cancel-Lock: sha1:kq3+JQfNvkY6nwjhQB4sn6y64CM= X-Enigmail-Version: 1.6 Xref: news.eternal-september.org comp.lang.ada:17587 Date: 2013-11-06T19:49:58+01:00 List-Id: Le 06/11/2013 12:05, mockturtle a écrit : > While reading section "E.4.1. Asynchronous Remote Calls" of our > beloved RM, I got a doubt: as I understand the language does not > define any specific mechanism for getting the "return value" of an > asynchronous call; if I want the result back I must implement the > "back channel" by myself (e.g., a callback or a polling function of > type "are we there yet?" [to be said with childish voice] :-). Am I > right? > Asynchronous calls is for calls that do not expect a returned value (no functions, no out parameters). The only thing you loose is that exceptions raised on the server side are not transmitted. If you need a return channel, use synchronous calls. Asynchronous calls are an optimization: you don't wait for the result if you don't expect any result. -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr