use of kotlin.coroutines.CoroutineContext in project pinpoint by naver.
the class ResumeWithInterceptor method getAsyncContext.
private AsyncContext getAsyncContext(Object object) {
if (object instanceof Continuation) {
CoroutineContext context = ((Continuation<?>) object).getContext();
if (context instanceof AsyncContextAccessor) {
AsyncContextAccessor accessor = (AsyncContextAccessor) context;
AsyncContext asyncContext = accessor._$PINPOINT$_getAsyncContext();
return asyncContext;
}
}
return null;
}
Aggregations