Places And Durable State

var declares a mutable place. Its semantic owner determines its lifetime.

var tasks: Map<Int, Task> = {}

An application-owned place is durable across requests, restarts, and deployments. A function-local place ends with the invocation. A workflow local that remains live across suspension is retained by the workflow runtime.

The contained value type does not change because the place is durable.