aboutsummaryrefslogtreecommitdiff
path: root/notes/resources.txt
blob: d2a224909b7ef5d1572be4e9c365771a0e93cc46 (plain)
1
2
3
4
5
6
7
8

Add an ability to declare a type as either:

* A resource, meaning that is always has to be cleaned up.
* A container, meaning that is the inner type is a resource, then the outer
  type also a resource.

Resources should be registered in the arena (or TLS storage), so they can
be cleaned up on asynchronous termination.