最新发布第27页
What are tasks and task groups? 什么是任务和任务组?-Stewed Noodles 资源

What are tasks and task groups? 什么是任务和任务组?

Using async/await in Swift allows us to write asynchronous code that is easy to read and understand, but by itself it doesn’t enable us to run anything concurrently – even w...
What’s the difference between a task and a detached task? 任务和分离任务有什么区别?-Stewed Noodles 资源

What’s the difference between a task and a detached task? 任务和分离任务有什么区别?

If you create a new task using the regular Task initializer, your work starts running immediately and inherits the priority of the caller, any task local values, and its ...
How to make a task sleep 如何使任务进入休眠状态-Stewed Noodles 资源

How to make a task sleep 如何使任务进入休眠状态

Swift’s Task struct has a static sleep() method that will cause the current task to be suspended for a set period of time. You need to call Task.sleep()&n...
Introduction to testing Swift concurrency Swift 并发测试简介-Stewed Noodles 资源

Introduction to testing Swift concurrency Swift 并发测试简介

Swift's full range of concurrency features work great with unit tests using both the legacy XCTest framework and the new Swift Testing framework.Swift 的全套并发功能非常适合使用旧...
@BindingAdapter-Stewed Noodles 资源

@BindingAdapter

基本介绍 @BindingAdapter 是 Data Binding 提供的注解,用来创建自定义的 XML 属性,使你可以在 XML 中直接调用方法,从而让布局更简洁、灵活。 用途 通过 @BindingAdapter,可以:• 为 View ...
模型容器-Stewed Noodles 资源

模型容器

ModelContainer 是 SwiftData 中负责创建和管理实际数据库文件的核心组件。它提供了集中化的存储方案,确保数据的持久化和高效访问。ModelContainer 处理数据模型的定义、数据库文件的生成与管...
What is actor hopping and how can it cause problems? 什么是 actor 跳转,它如何导致问题?-Stewed Noodles 资源

What is actor hopping and how can it cause problems? 什么是 actor 跳转,它如何导致问题?

When a thread pauses work on one actor to start work on another actor instead, we call it actor hopping, and it will happen any time one actor calls another.当线程暂停对一个 a...
工单类别-Stewed Noodles 资源

工单类别

巡检任务隐患过来的是检修工单 故障过来的是抢修工单 计划任务过来是计划工单 预防性维护过来的是预防性工单 检修与抢修工单 巡检人员在巡检的过程中,如果遇到故障,直接填报故障,等抢修完成...
XuX的头像-Stewed Noodles 资源烩之面大会员XuX11个月前
0200
RecyclerView-Stewed Noodles 资源

RecyclerView

RecyclerView 是 Android 中一个用于高效展示大量列表数据的强大控件,是 ListView 的升级版。它具有更好的性能、更灵活的布局管理方式,并且支持强大的扩展能力。 RecyclerView 会回收这些独立...
Class-Stewed Noodles 资源

Class

带构造函数的类 /** * 带构造函数的类 */ class Robot(val name: String) { fun greetHuman() { println('Hello human, my name is $name') } fun walk() { println('I'm walking') } } // 类对...