@@ -2,23 +2,31 @@ use intl_memoizer::{concurrent::IntlLangMemoizer, Memoizable};
22use rustc_hash:: FxHashMap ;
33use unic_langid:: LanguageIdentifier ;
44
5- use crate :: bundle:: FluentBundle ;
65use crate :: memoizer:: MemoizerKind ;
76use crate :: types:: FluentType ;
87
9- impl < R > FluentBundle < R , IntlLangMemoizer > {
8+ /// Specialized [`FluentBundle`](crate::bundle::FluentBundle) over
9+ /// concurrent [`IntlLangMemoizer`](intl_memoizer::concurrent::IntlLangMemoizer).
10+ ///
11+ /// A concurrent `FluentBundle` can be constructed with the
12+ /// [`FluentBundle::new_concurrent`] method.
13+ ///
14+ /// See [`FluentBundle`](crate::FluentBundle) for the non-concurrent specialization.
15+ pub type FluentBundle < R > = crate :: bundle:: FluentBundle < R , IntlLangMemoizer > ;
16+
17+ impl < R > FluentBundle < R > {
1018 /// A constructor analogous to [`FluentBundle::new`] but operating
1119 /// on a concurrent version of [`IntlLangMemoizer`] over [`Mutex`](std::sync::Mutex).
1220 ///
1321 /// # Example
1422 ///
1523 /// ```
16- /// use fluent_bundle::bundle ::FluentBundle;
24+ /// use fluent_bundle::concurrent ::FluentBundle;
1725 /// use fluent_bundle::FluentResource;
1826 /// use unic_langid::langid;
1927 ///
2028 /// let langid_en = langid!("en-US");
21- /// let mut bundle: FluentBundle<FluentResource, _ > =
29+ /// let mut bundle: FluentBundle<FluentResource> =
2230 /// FluentBundle::new_concurrent(vec![langid_en]);
2331 /// ```
2432 pub fn new_concurrent ( locales : Vec < LanguageIdentifier > ) -> Self {
0 commit comments