最新发布第26页
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...
Manifest 文件-Stewed Noodles 资源

Manifest 文件

Manifest.xml 文件是重要的配置文件,提供了Android 应用程序的基本信息。 <?xml version='1.0' encoding='utf-8'?> <!--配置清单的开始标记--> <manifest xmlns:android='http://sche...
Live Data-Stewed Noodles 资源

Live Data

基本介绍 LiveData 是一个可观察的数据持有类。与普通的可观察对象不同,LiveData 具备生命周期感知能力,也就是说它会遵循应用中其他组件(如 Activity、Fragment 或 Service)的生命周期。 这...
jiulinxiri的头像-Stewed Noodles 资源烩之面大会员jiulinxiri5个月前
0180
Jetpack Compose-Stewed Noodles 资源

Jetpack Compose

Jetpack compose 是谷歌开发的一款现代工具包,用于构建原生 Android用户界面。它允许开发者使用声明式编程模型为 Android应用构建 UI 界面,当底层数据发生改变时,Compose 负责更新 UI 界面,...
jiulinxiri的头像-Stewed Noodles 资源烩之面大会员jiulinxiri4个月前
0180
Data Class 数据类-Stewed Noodles 资源

Data Class 数据类

Kotlin 中的 数据类(data class) 是一种用于只存数据的类,能够自动生成常用的函数。 equals() hashCode() toString() copy() 语法 data class ClassName( val prop: Type, var prop2: Type )...
withAnimation-Stewed Noodles 资源

withAnimation

使用提供的动画重新计算视图主体,并返回结果。 struct ContentView: View { @State private var isActive = false var body: some View { VStack(alignment: isActive ? .trailing : .leading)...
jiulinxiri的头像-Stewed Noodles 资源烩之面大会员jiulinxiri1年前
0170
Sending data safely across actor boundaries 跨参与者边界安全地发送数据-Stewed Noodles 资源

Sending data safely across actor boundaries 跨参与者边界安全地发送数据

Swift tries to ensure access to shared data is done safely, partly through types such as actors, and partly through a concept of sendability implemented through the ...
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 ...
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 资源

物资、设备与资产

物资设备与资产 采购阶段 在采购阶段设备以物资的形式呈现,采购阶段主要是物资的采购、到货以及验收。物资形式下的设备拥有物资编码。 设备建档 物资采购完成后,可以进行设备建档,设备建档会...
jiulinxiri的头像-Stewed Noodles 资源烩之面大会员jiulinxiri9个月前
0170