[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Implementing a cancelable task
From: |
Christian Grothoff |
Subject: |
Re: Implementing a cancelable task |
Date: |
Fri, 24 Jul 2020 21:26:49 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 7/24/20 4:45 PM, Alessio Vanni wrote:
>
> The problem I'm facing is that due to the presence of CADET, I don't
> have an immediate way to associate a certain task with a certain reply,
> as CADET is another async operation.
>
> If really the only way (or the more correct) is to have the ID in the
> message sent to the remote peer then I supposed I'll do it, but I
> thought I'd first ask people with more expertise, especially since I'd
> like to have it work similarily to what GNUnet offers in its services'
> APIs (e.g. `GNUNET_GNS_lookup_cancel'.)
I'm still not exactly sure what you are doing, but indeed putting an ID
into the request and the reply is a very common pattern that is almost
never wrong ;-).
signature.asc
Description: OpenPGP digital signature