Safe asynchronous mixed-choice for timed interactions

07/24/2023
by   Jonah Pears, et al.
0

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 𝚛𝚎𝚌𝚎𝚒𝚟𝚎-𝚊𝚏𝚝𝚎𝚛 pattern, much like Erlang, and informally illustrate the correspondence with TOAST specifications.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/05/2018

On Urgency in Asynchronous Timed Session Types

We study an urgent semantics of asynchronous timed session types, where ...
research
09/06/2022

On the Expressiveness of Mixed Choice Sessions

Session types provide a flexible programming style for structuring inter...
research
08/15/2022

On the Expressiveness of Mixed Choice Sessions (Technical Report)

Session types provide a flexible programming style for structuring inter...
research
02/04/2019

A Session Type System for Asynchronous Unreliable Broadcast Communication

Session types are formal specifications of communication protocols, allo...
research
06/30/2019

A Sound Algorithm for Asynchronous Session Subtyping (extended version)

Session types, types for structuring communication between endpoints in ...
research
04/03/2020

Mixed Sessions: the Other Side of the Tape

The original paper on Mixed Sessions introduce the side A of the tape: t...
research
02/01/2021

Global types and event structure semantics for asynchronous multiparty sessions

We propose an interpretation of multiparty sessions with asynchronous co...

Please sign up or login with your details

Forgot password? Click here to reset