Basically the same as https://github.com/async-interop/event-loop/issues/117, callbacks passed to `Promise::when` might contain scalar type declarations.