< prev index next > test/jdk/javax/security/auth/Subject/CallAsWithScopedValue.java
Print this page
return null;
});
// Observable in structured concurrency in SV mode, but not in ACC mode
Subject.callAs(subject, () -> {
- try (var scope = new StructuredTaskScope<>()) {
+ var policy = StructuredTaskScope.JoinPolicy.ignoreAll();
+ try (var scope = StructuredTaskScope.open(policy)) {
scope.fork(() -> check(3, Subject.current(), usv ? "Duke" : null));
scope.join();
}
return null;
});
< prev index next >