Docker 基础 – 容器
容器常见命令创建容器# 完整命令 docker container run <image name> # 简写命令 docker run <image name> 列出容器查看 up 状态的容器# 完整命令 docker container ls # 简写命令 ...
How to test AsyncSequence and AsyncStream 如何测试 AsyncSequence 和 AsyncStream
Concurrent Swift code often streams values over time rather than returning them all at once, so it's important to be able to write tests to check an AsyncStream, AsyncSeq...
ViewPager
基本介绍 ViewPager 是一种布局管理器,允许用户在数据页面之间左右滑动切换。这通常用于构建包含 多个视图 或 功能区域 的应用,用户可以通过水平滑动在它们之间进行导航,类似于画廊或一系列...
How to control the priority of a task 如何控制任务的优先级
Swift tasks can have a priority attached to them, such as .high or .background, but the priority can also be nil if no specific priority was assigned. This...
How to test completion handlers with Swift Testing and XCTest 如何使用 Swift Testing 和 XCTest 测试补全处理程序
When you're dealing with older concurrency code that relies on callback functions that get run when some work completes rather than using Swift concurrency's async/await ...







