Capture가 연결하는 수명

callback은 값뿐 아니라 captured reference의 생존에도 영향을 준다.

registered lambda

Owner

this capture로 연결된다.

Local value

effectively final 값이 저장된다.

Mutable object

reference는 고정이어도 내부는 변한다.

Registry

해제 전까지 lambda를 보관한다.

핵심: request 객체를 singleton registry에 남기지 않도록 소유권을 둔다.