mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-09-20 14:07:58 +00:00
22 lines
609 B
Rust
22 lines
609 B
Rust
![]() |
use crate::services::grid_editor::GridRevisionEditor;
|
||
|
use crate::services::tasks::{GridTaskHandler, Task, TaskContent};
|
||
|
use flowy_error::FlowyError;
|
||
|
use lib_infra::future::BoxResultFuture;
|
||
|
use std::sync::Arc;
|
||
|
|
||
|
impl GridTaskHandler for Arc<GridRevisionEditor> {
|
||
|
fn handler_id(&self) -> &str {
|
||
|
&self.grid_id
|
||
|
}
|
||
|
|
||
|
fn process_task(&self, task: Task) -> BoxResultFuture<(), FlowyError> {
|
||
|
Box::pin(async move {
|
||
|
match task.content {
|
||
|
TaskContent::Snapshot { .. } => {}
|
||
|
TaskContent::Filter => {}
|
||
|
}
|
||
|
Ok(())
|
||
|
})
|
||
|
}
|
||
|
}
|