Skip to content
Developer Preview

HostDeathDischarge

What one Session.hostExited call did.

Discriminated because the three outcomes leave the session in three different states, and a bare discharged: boolean collapsed the two false arms into one: after notADeath the session is still usable, after durableDeath it is dead until resume with every live wait already rejected. An embedder should not have to re-derive that from the profile and the exit row the method already read.

Source

clients/sdk-ts/src/facade/host-death.ts:175

{
"kind": "Type alias",
"canonicalPath": "HostDeathDischarge"
}