AndroidThreadPool
Android线程池
Install / Use
/learn @cuibg/AndroidThreadPoolREADME
AndroidThreadPool
使用方法
基本使用
-
使用
Future<?> future = ExecutorSupplier.getInstance() .getBackgroundTasksExecutor() .submit(new Runnable() { @Override public void run() { } }); -
取消线程
future.cancle(true);
设置线程的优先等级使用
-
使用
Future<?> future = ExecutorSupplier.getInstance() .getBackgroundTasksExecutor() .submit(new PriorityRunnable(Priority.HIGH) { @Override public void run() { } }); -
等级设置
等级设置有四种
- Priority.LOW:低
- Priority.MEDIUM:中
- Priority.HIGH:高
- Priority.IMMEDIATE:最高
-
取消线程
future.cancle(true);
Related Skills
node-connect
343.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
92.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
