Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Christophe Raffalli <christophe@raffalli.eu>
To: caml-list@inria.fr
Subject: [Caml-list] Parallel for with exception
Date: Wed, 12 Oct 2022 18:00:40 -1000	[thread overview]
Message-ID: <20221013040040.sfcmxo3h6ao63fiw@oulala> (raw)

[-- Attachment #1: Type: text/plain, Size: 169 bytes --]

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.


[-- Attachment #2: Type: message/rfc822, Size: 14753 bytes --]

[-- Attachment #2.1.1: Type: text/plain, Size: 411 bytes --]


Hello,

I am trying ocaml 5.0 and Task.parralel_for in
domainlib is not compatible with exception to interrupt the loop.
When an exception is raised by a task, we need to interrupt or wait for the
other tasks to finish before raising the exception.

What is the recommanded solution for that pattern ?

Cheers,
Christophe

--
Christophe Raffalli
tél: +689 87 23 11 48
web: http://raffalli.eu

[-- Attachment #2.1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 499 bytes --]

             reply	other threads:[~2022-10-13  4:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-13  4:00 Christophe Raffalli [this message]
2022-10-14 20:49 ` Gabriel Scherer
2022-10-15  2:34   ` Christophe Raffalli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221013040040.sfcmxo3h6ao63fiw@oulala \
    --to=christophe@raffalli.eu \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox