~Escapable instance capturing nonescaping closure

Is it possible for nonescaping type instance to capture nonescaping closure? Something like:

struct Foo: ~Escapable {
   let operation: () -> Void

   // nonescaping `operation` closure
   init(_ operation: () -> Void) { self.operation = operation }

   func callAsFunction() { operation: () }
}
1 Like

Not currently.

1 Like