java-concurrent
java-concurrent copied to clipboard
Adds support for AutoFinishScope
Adds support for AutoFinishScope by checking the type of ScopeManager and using a AutoFinishScope.Continuation when appropriate. Includes some tests.
Since your AutoFinishScope
behaviour is optional, could you please make sure not to introduce new runtime dependencies (such as opentracing-util from test to provided
instead of runtime) ?
You will have to take care of some gotcha's to make this work:
- Don't import any optional classes but use their fully qualified name (otherwise the import will throw linkage error when your class is loaded instead of when the optional class is actually needed)
- Catch and anticipate a linkage error (usually NoClassDefFoundError)
What's the status of this PR?