1234567891011121314151617181920212223242526272829 |
- use crate::services::sort::SortController;
- use flowy_task::{TaskContent, TaskHandler};
- use lib_infra::future::BoxResultFuture;
- use std::sync::Arc;
- use tokio::sync::RwLock;
- pub struct SortTaskHandler {
- handler_id: String,
- sort_controller: Arc<RwLock<SortController>>,
- }
- impl SortTaskHandler {
- pub fn new(handler_id: String, sort_controller: Arc<RwLock<SortController>>) -> Self {
- Self {
- handler_id,
- sort_controller,
- }
- }
- }
- impl TaskHandler for SortTaskHandler {
- fn handler_id(&self) -> &str {
- &self.handler_id
- }
- fn run(&self, content: TaskContent) -> BoxResultFuture<(), anyhow::Error> {
- todo!();
- }
- }
|