15 Star 73 Fork 23

Gitee 极速下载/Fyne

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/fyne-io/fyne
克隆/下载
thread.go 792 Bytes
一键复制 编辑 原始数据 按行查看 历史
package fyne
// DoAndWait is used to execute a specified function in the main Fyne runtime context.
// This is required when a background process wishes to adjust graphical elements of a running app.
// Developers should use this only from within goroutines they have created.
//
// Since: 2.6
func DoAndWait(fn func()) {
CurrentApp().Driver().DoFromGoroutine(fn, true)
}
// Do is used to execute a specified function in the main Fyne runtime context without waiting.
// This is required when a background process wishes to adjust graphical elements of a running app.
// Developers should use this only from within goroutines they have created and when the result does not have to
// be waited for.
//
// Since: 2.6
func Do(fn func()) {
CurrentApp().Driver().DoFromGoroutine(fn, false)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/mirrors/Fyne.git
git@gitee.com:mirrors/Fyne.git
mirrors
Fyne
Fyne
master

搜索帮助