[PR #1772] [MERGED] fix: potential async errors #4935

Closed
opened 2026-03-23 22:16:29 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/1772
Author: @appflowy
Created: 1/31/2023
Status: Merged
Merged: 1/31/2023
Merged by: @appflowy

Base: mainHead: fix/folder_editor_error


📝 Commits (1)

  • 10cb54e fix: potential async errors

📊 Changes

23 files changed (+206 additions, -223 deletions)

View changed files

📝 frontend/appflowy_tauri/src-tauri/Cargo.lock (+1 -0)
📝 frontend/appflowy_tauri/src/services/backend/index.ts (+6 -6)
📝 frontend/rust-lib/Cargo.lock (+1 -0)
📝 frontend/rust-lib/flowy-core/Cargo.toml (+5 -3)
📝 frontend/rust-lib/flowy-core/src/lib.rs (+100 -97)
📝 frontend/rust-lib/flowy-database/Cargo.toml (+1 -1)
📝 frontend/rust-lib/flowy-document/Cargo.toml (+1 -0)
📝 frontend/rust-lib/flowy-document/src/services/migration.rs (+0 -1)
📝 frontend/rust-lib/flowy-folder/Cargo.toml (+1 -1)
📝 frontend/rust-lib/flowy-folder/src/services/view/controller.rs (+4 -4)
📝 frontend/rust-lib/flowy-folder/src/services/view/event_handler.rs (+1 -1)
📝 frontend/rust-lib/flowy-net/src/request.rs (+2 -2)
📝 frontend/rust-lib/flowy-revision/src/rev_manager.rs (+1 -1)
📝 frontend/rust-lib/flowy-test/Cargo.toml (+3 -3)
📝 frontend/rust-lib/flowy-user/Cargo.toml (+1 -0)
📝 frontend/rust-lib/flowy-user/src/entities/user_profile.rs (+13 -1)
📝 frontend/rust-lib/flowy-user/src/event_map.rs (+10 -2)
📝 frontend/rust-lib/flowy-user/src/handlers/auth_handler.rs (+2 -2)
📝 frontend/rust-lib/flowy-user/src/handlers/user_handler.rs (+2 -2)
📝 frontend/rust-lib/flowy-user/src/services/database.rs (+3 -4)

...and 3 more files

📄 Description

try to fix #1576
The FolderEditor initialization error will show up when the Tokio Runtime receives a new event before finishing polling the initialization task.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/AppFlowy-IO/AppFlowy/pull/1772 **Author:** [@appflowy](https://github.com/appflowy) **Created:** 1/31/2023 **Status:** ✅ Merged **Merged:** 1/31/2023 **Merged by:** [@appflowy](https://github.com/appflowy) **Base:** `main` ← **Head:** `fix/folder_editor_error` --- ### 📝 Commits (1) - [`10cb54e`](https://github.com/AppFlowy-IO/AppFlowy/commit/10cb54ee98526e49b9a1834d29ef585e493fece6) fix: potential async errors ### 📊 Changes **23 files changed** (+206 additions, -223 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_tauri/src-tauri/Cargo.lock` (+1 -0) 📝 `frontend/appflowy_tauri/src/services/backend/index.ts` (+6 -6) 📝 `frontend/rust-lib/Cargo.lock` (+1 -0) 📝 `frontend/rust-lib/flowy-core/Cargo.toml` (+5 -3) 📝 `frontend/rust-lib/flowy-core/src/lib.rs` (+100 -97) 📝 `frontend/rust-lib/flowy-database/Cargo.toml` (+1 -1) 📝 `frontend/rust-lib/flowy-document/Cargo.toml` (+1 -0) 📝 `frontend/rust-lib/flowy-document/src/services/migration.rs` (+0 -1) 📝 `frontend/rust-lib/flowy-folder/Cargo.toml` (+1 -1) 📝 `frontend/rust-lib/flowy-folder/src/services/view/controller.rs` (+4 -4) 📝 `frontend/rust-lib/flowy-folder/src/services/view/event_handler.rs` (+1 -1) 📝 `frontend/rust-lib/flowy-net/src/request.rs` (+2 -2) 📝 `frontend/rust-lib/flowy-revision/src/rev_manager.rs` (+1 -1) 📝 `frontend/rust-lib/flowy-test/Cargo.toml` (+3 -3) 📝 `frontend/rust-lib/flowy-user/Cargo.toml` (+1 -0) 📝 `frontend/rust-lib/flowy-user/src/entities/user_profile.rs` (+13 -1) 📝 `frontend/rust-lib/flowy-user/src/event_map.rs` (+10 -2) 📝 `frontend/rust-lib/flowy-user/src/handlers/auth_handler.rs` (+2 -2) 📝 `frontend/rust-lib/flowy-user/src/handlers/user_handler.rs` (+2 -2) 📝 `frontend/rust-lib/flowy-user/src/services/database.rs` (+3 -4) _...and 3 more files_ </details> ### 📄 Description try to fix #1576 The `FolderEditor` initialization error will show up when the Tokio Runtime receives a new event before finishing polling the initialization task. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 22:16:29 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#4935
No description provided.