可完成的(任务或操作)未来分类器(Classifier)
Java-friendly wrapper around a Classifier that it owns: classify calls Classifier.classify in the caller's OpenTelemetry context and the passed coroutineContext, returning a CompletableFuture of the result. Canceling a future cancels its call, and a Job in coroutineContext is ignored.
函数
Link copied to clipboard
这个“封装后的分类器”(wrapped classifier)适用于那些已经被移植到 Kotlin 语言中的代码。
Link copied to clipboard
fun classify(request: ClassifierRequest, coroutineContext: CoroutineContext = EmptyCoroutineContext): CompletableFuture<ClassifierResponse>
调用(函数或方法) Classifier.classify.
Link copied to clipboard
在通话进行过程中取消通话;如果分类器(classifier)处于开启状态,则关闭该分类器。 AutoCloseable后续的每次调用都会返回一个已被取消的“future”对象(即那些原本应该在未来某个时间执行的操作)。