docs: update resources API docs
This commit is contained in:
25
docs/api/resources/asyncloader/isloading.md
Normal file
25
docs/api/resources/asyncloader/isloading.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# AsyncLoader::IsLoading
|
||||
|
||||
```cpp
|
||||
bool IsLoading() const
|
||||
```
|
||||
|
||||
检查是否有正在加载的资源。
|
||||
|
||||
**参数:** 无
|
||||
|
||||
**返回:** 如果有待处理或完成的加载请求返回 `true`,否则返回 `false`
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
if (AsyncLoader::Get().IsLoading()) {
|
||||
printf("Resources are still loading...\n");
|
||||
}
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [AsyncLoader 总览](asyncloader.md) - 返回类总览
|
||||
Reference in New Issue
Block a user