Kotlin api:
fun foo(block: suspend () -> T) { }
Use it in Java:
foo(Lambdas.suspendSupplier(() -> new T()));foo(Lambdas.suspendSupplier(T::new));