mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: config grid filter in backend & add tests
* chore: add search crate * chore: add task order test * chore: enable timeout * add task crate * chore: run filter task * chore: run filter task * chore: filter rows * chore: cache filter result * chore: filter rows when open a grid * chore: add tests * test: add number filter test * test: add checkbox fitler test * chore: fix test Co-authored-by: nathan <nathan@appflowy.io>
This commit is contained in:
@ -8,20 +8,20 @@ use std::{
|
||||
task::{Context, Poll},
|
||||
};
|
||||
|
||||
pub fn wrap_future<T, O>(f: T) -> AFFuture<O>
|
||||
pub fn to_future<T, O>(f: T) -> Fut<O>
|
||||
where
|
||||
T: Future<Output = O> + Send + Sync + 'static,
|
||||
{
|
||||
AFFuture { fut: Box::pin(f) }
|
||||
Fut { fut: Box::pin(f) }
|
||||
}
|
||||
|
||||
#[pin_project]
|
||||
pub struct AFFuture<T> {
|
||||
pub struct Fut<T> {
|
||||
#[pin]
|
||||
pub fut: Pin<Box<dyn Future<Output = T> + Sync + Send>>,
|
||||
}
|
||||
|
||||
impl<T> Future for AFFuture<T>
|
||||
impl<T> Future for Fut<T>
|
||||
where
|
||||
T: Send + Sync,
|
||||
{
|
||||
|
@ -2,7 +2,7 @@ use std::collections::HashMap;
|
||||
use std::sync::Arc;
|
||||
|
||||
pub trait RefCountValue {
|
||||
fn did_remove(&self);
|
||||
fn did_remove(&self) {}
|
||||
}
|
||||
|
||||
struct RefCountHandler<T> {
|
||||
|
Reference in New Issue
Block a user