pub async fn new<L, R>(
left_cache_builder: BackendBuilder<MaildirContextBuilder>,
left_builder: BackendBuilder<L>,
right_cache_builder: BackendBuilder<MaildirContextBuilder>,
right_builder: BackendBuilder<R>,
pool_size: Option<usize>,
handler: Option<Arc<SyncEventHandler>>,
dry_run: bool,
folder_filter: Option<FolderSyncStrategy>
) -> Result<ThreadPool<SyncPoolContext<L::Context, R::Context>>>where
L: BackendContextBuilder + 'static,
R: BackendContextBuilder + 'static,Expand description
Create a new thread pool dedicated to synchronization.