---
title: "Discussion on \"How to separate the update of the egui GUI and background program processes?\" | Hashnode"
description: "Discussion on \"How to separate the update of the egui GUI and background program processes?\". Let's say you are building a GUI application with Egui.You want to make start a certain task when you click a button.\nYou can simply write code like this.\nif ui.button(\"click me\").clicked() {\n    start_task();\n}\n\nBut what if that task takes 10 second..."
url: "https://hashnode.com/posts/how-to-separate-the-update-of-the-egui-gui-and-background-program-processes/6829b26887f50137c123d2c0"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to separate the update of the egui GUI and background program processes?](https://bakus-tech-blog.hashnode.dev/how-to-separate-the-update-of-the-egui-gui-and-background-program-processes?utm_source=hashnode&utm_medium=feed)

Let's say you are building a GUI application with Egui.You want to make start a certain task when you click a button. You can simply write code like this. if ui.button("click me").clicked() { start\_task(); } But what if that task takes 10 second...

May 18, 2025 · 3 min read · bakus-tech-blog.hashnode.dev  
Read the article

-   [#egui](https://hashnode.com/tag/egui)
-   [#rust](https://hashnode.com/tag/rust)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Baku Kim](https://hashnode.com/@probaku1234)

@probaku1234

  
[View profile](https://hashnode.com/@probaku1234)

AI Engineer | Ex-Backend Developer | Tech Enthusiast

With 2+ years of experience in web backend development, I now specialize in AI engineering, building intelligent systems and scalable solutions. Passionate about crafting innovative software, I love exploring new technologies, experimenting with AI models, and bringing ideas to life. Always learning, always building.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
