当前位置: 首页>>代码示例>>Java>>正文


Java AsyncUtil类代码示例

本文整理汇总了Java中com.intellij.concurrency.AsyncUtil的典型用法代码示例。如果您正苦于以下问题:Java AsyncUtil类的具体用法?Java AsyncUtil怎么用?Java AsyncUtil使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


AsyncUtil类属于com.intellij.concurrency包,在下文中一共展示了AsyncUtil类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: processElementsWithWordAsync

import com.intellij.concurrency.AsyncUtil; //导入依赖的package包/类
@NotNull
@Override
public AsyncFuture<Boolean> processElementsWithWordAsync(@NotNull final TextOccurenceProcessor processor,
                                                         @NotNull SearchScope searchScope,
                                                         @NotNull final String text,
                                                         final short searchContext,
                                                         final boolean caseSensitively) {
  boolean result = processElementsWithWord(processor, searchScope, text, searchContext, caseSensitively,
                                           shouldProcessInjectedPsi(searchScope));
  return AsyncUtil.wrapBoolean(result);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:12,代码来源:PsiSearchHelperImpl.java

示例2: processElementsWithWordAsync

import com.intellij.concurrency.AsyncUtil; //导入依赖的package包/类
@Nonnull
@Override
public AsyncFuture<Boolean> processElementsWithWordAsync(@Nonnull final TextOccurenceProcessor processor,
                                                         @Nonnull SearchScope searchScope,
                                                         @Nonnull final String text,
                                                         final short searchContext,
                                                         final boolean caseSensitively) {
  boolean result = processElementsWithWord(processor, searchScope, text, searchContext, caseSensitively,
                                           shouldProcessInjectedPsi(searchScope));
  return AsyncUtil.wrapBoolean(result);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:12,代码来源:PsiSearchHelperImpl.java

示例3: forEachAsync

import com.intellij.concurrency.AsyncUtil; //导入依赖的package包/类
@NotNull
@Override
public AsyncFuture<Boolean> forEachAsync(@NotNull Processor<R> consumer) {
  return AsyncUtil.wrapBoolean(true);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:EmptyQuery.java

示例4: forEachAsync

import com.intellij.concurrency.AsyncUtil; //导入依赖的package包/类
@NotNull
@Override
public AsyncFuture<Boolean> forEachAsync(@NotNull final Processor<T> consumer) {
  return AsyncUtil.wrapBoolean(forEach(consumer));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:ArrayQuery.java

示例5: forEachAsync

import com.intellij.concurrency.AsyncUtil; //导入依赖的package包/类
@NotNull
@Override
public AsyncFuture<Boolean> forEachAsync(@NotNull Processor<Result> consumer) {
  return AsyncUtil.wrapBoolean(forEach(consumer));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:AbstractQuery.java

示例6: processResultsAsync

import com.intellij.concurrency.AsyncUtil; //导入依赖的package包/类
@NotNull
protected AsyncFuture<Boolean> processResultsAsync(@NotNull Processor<Result> consumer) {
  return AsyncUtil.wrapBoolean(processResults(consumer));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:AbstractQuery.java

示例7: forEachAsync

import com.intellij.concurrency.AsyncUtil; //导入依赖的package包/类
@NotNull
@Override
public AsyncFuture<Boolean> forEachAsync(@NotNull Processor<T> consumer) {
  return AsyncUtil.wrapBoolean(forEach(consumer));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:CollectionQuery.java

示例8: processRequestsAsync

import com.intellij.concurrency.AsyncUtil; //导入依赖的package包/类
@NotNull
@Override
public AsyncFuture<Boolean> processRequestsAsync(@NotNull SearchRequestCollector collector, @NotNull Processor<PsiReference> processor) {
  return AsyncUtil.wrapBoolean(processRequests(collector, processor));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:PsiSearchHelperImpl.java

示例9: blockUntilDeployComplete

import com.intellij.concurrency.AsyncUtil; //导入依赖的package包/类
/** Blocks until the plugin files have been copied to the sandbox */
void blockUntilDeployComplete() {
  AsyncUtil.get(fileCopyingTask);
  fileCopyingTask = null;
}
 
开发者ID:bazelbuild,项目名称:intellij,代码行数:6,代码来源:BlazeIntellijPluginDeployer.java

示例10: processRequestsAsync

import com.intellij.concurrency.AsyncUtil; //导入依赖的package包/类
@Nonnull
@Override
public AsyncFuture<Boolean> processRequestsAsync(@Nonnull SearchRequestCollector collector, @Nonnull Processor<PsiReference> processor) {
  return AsyncUtil.wrapBoolean(processRequests(collector, processor));
}
 
开发者ID:consulo,项目名称:consulo,代码行数:6,代码来源:PsiSearchHelperImpl.java


注:本文中的com.intellij.concurrency.AsyncUtil类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。