ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
//////////////////////MainQueue////////////////////// @interface MainQueue : NSObject #pragma mark 执行同步任务 ``` + (void)executeSyncTask:(dispatch_block_t)task; ``` #pragma mark 执行异步任务 ``` + (void)executeAsyncTask:(dispatch_block_t)task; ``` #pragma mark 在五个系统提供的队列上,执行延迟任务 ``` + (void)executeDelayTask:(dispatch_block_t)task afterDelaySecs:(NSTimeInterval)sec; ``` #pragma mark 和组相关 ``` /// execute + (void)executeTask:(dispatch_block_t)task inGroup:(GCDGroup*)group; ///notify + (void)notifyTask:(dispatch_block_t)task inGroup:(GCDGroup*)group; ``` #pragma mark 暂停恢复函数,暂停和恢复对应的系统提供的主队列 ``` + (void)suspend; + (void)resume; ``` #pragma mark 迭代函数 ``` + (void)applyExecuteTask:(TaskBlock)task count:(float)count; ``` @end