add: async wrapper for pp calculate

This commit is contained in:
PurePeace
2021-02-23 15:30:57 +08:00
parent a597735513
commit 59f77dfd4b
5 changed files with 34 additions and 0 deletions
+5
View File
@@ -261,6 +261,11 @@ impl<'m> OsuPP<'m> {
unreachable!()
}
#[inline]
pub async fn calculate_async(self) -> PpResult {
self.calculate()
}
/// Returns an object which contains the pp and [`DifficultyAttributes`](crate::osu::DifficultyAttributes)
/// containing stars and other attributes.
///