Safe Asynchronous Mixed-Choice for Timed Interactions - Coordination Models and Languages
Conference Papers Year : 2023

Safe Asynchronous Mixed-Choice for Timed Interactions

Jonah Pears
  • Function : Author
  • PersonId : 1408368
Laura Bocchi
  • Function : Author
  • PersonId : 1382805
Andy King
  • Function : Author
  • PersonId : 1408369

Abstract

Mixed-choice has long been barred from models of asynchronous communication since it compromises key properties of communicating finite-state machines. Session types inherit this restriction, which precludes them from fully modelling timeouts – a key programming feature to handle failures. To address this deficiency, we present (binary) TimeOut Asynchronous Session Types (TOAST) as an extension to (binary) asynchronous timed session types to permit mixed-choice. TOAST deploy timing constraints to regulate the use of mixed-choice so as to preserve communication safety. We provide a new behavioural semantics for TOAST which guarantees progress in the presence of mixed-choice. Building upon TOAST, we provide a calculus featuring process timers which is capable of modelling timeouts using a $$\mathtt {receive\text {-}after}$$receive-after pattern, much like Erlang, and informally illustrate the correspondence with TOAST specifications.
Embargoed file
Embargoed file
1 1 11
Year Month Jours
Avant la publication
Thursday, January 1, 2026
Embargoed file
Thursday, January 1, 2026
Please log in to request access to the document

Dates and versions

hal-04673820 , version 1 (20-08-2024)

Licence

Identifiers

Cite

Jonah Pears, Laura Bocchi, Andy King. Safe Asynchronous Mixed-Choice for Timed Interactions. 25th International Conference on Coordination Languages and Models (COORDINATION), Jun 2023, Lisbon, Portugal. pp.214-231, ⟨10.1007/978-3-031-35361-1_12⟩. ⟨hal-04673820⟩
23 View
1 Download

Altmetric

Share

More