Jonah Pears ; Laura Bocchi ; Maurizio Murgia ; Andy King - Timeout Asynchronous Session Types: Safe Asynchronous Mixed-Choice For Timed Interactions

lmcs:12913 - Logical Methods in Computer Science, July 23, 2025, Volume 21, Issue 3 - https://doi.org/10.46298/lmcs-21(3:6)2025
Timeout Asynchronous Session Types: Safe Asynchronous Mixed-Choice For Timed InteractionsArticle

Authors: Jonah Pears ; Laura Bocchi ; Maurizio Murgia ; Andy King

    Mixed-choice has long been barred from models of asynchronous communication since it compromises the decidability of key properties of communicating finite-state machines. Session types inherit this restriction, which precludes them from fully modelling timeouts -- a core property of web and cloud services. To address this deficiency, we present (binary) Timeout Asynchronous Session Types (TOAST) as an extension to (binary) asynchronous timed session types, that permits mixed-choice. TOAST deploys 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 receive-after pattern, much like Erlang, and capture the correspondence with TOAST specifications via a type system for which we prove subject reduction.


    Volume: Volume 21, Issue 3
    Published on: July 23, 2025
    Accepted on: May 8, 2025
    Submitted on: January 23, 2024
    Keywords: Logic in Computer Science

    Consultation statistics

    This page has been seen 1188 times.
    This article's PDF has been downloaded 316 times.