mirror of
https://github.com/chatmail/core.git
synced 2026-04-29 11:26:29 +03:00
s/forgeting/forgetting/
This commit is contained in:
@@ -3159,7 +3159,7 @@ void dc_accounts_maybe_network_lost (dc_accounts_t* accounts);
|
|||||||
*
|
*
|
||||||
* The `DC_EVENT_ACCOUNTS_BACKGROUND_FETCH_DONE` event is emitted at the end,
|
* The `DC_EVENT_ACCOUNTS_BACKGROUND_FETCH_DONE` event is emitted at the end,
|
||||||
* process all events until you get this one and you can safely return to the background
|
* process all events until you get this one and you can safely return to the background
|
||||||
* without forgeting to create notifications caused by timing race conditions.
|
* without forgetting to create notifications caused by timing race conditions.
|
||||||
*
|
*
|
||||||
* @memberof dc_accounts_t
|
* @memberof dc_accounts_t
|
||||||
* @param timeout The timeout in seconds
|
* @param timeout The timeout in seconds
|
||||||
|
|||||||
@@ -235,7 +235,7 @@ impl CommandApi {
|
|||||||
///
|
///
|
||||||
/// The `AccountsBackgroundFetchDone` event is emitted at the end,
|
/// The `AccountsBackgroundFetchDone` event is emitted at the end,
|
||||||
/// process all events until you get this one and you can safely return to the background
|
/// process all events until you get this one and you can safely return to the background
|
||||||
/// without forgeting to create notifications caused by timing race conditions.
|
/// without forgetting to create notifications caused by timing race conditions.
|
||||||
async fn accounts_background_fetch(&self, timeout_in_seconds: f64) -> Result<()> {
|
async fn accounts_background_fetch(&self, timeout_in_seconds: f64) -> Result<()> {
|
||||||
self.accounts
|
self.accounts
|
||||||
.write()
|
.write()
|
||||||
|
|||||||
@@ -316,7 +316,7 @@ impl Accounts {
|
|||||||
///
|
///
|
||||||
/// The `AccountsBackgroundFetchDone` event is emitted at the end,
|
/// The `AccountsBackgroundFetchDone` event is emitted at the end,
|
||||||
/// process all events until you get this one and you can safely return to the background
|
/// process all events until you get this one and you can safely return to the background
|
||||||
/// without forgeting to create notifications caused by timing race conditions.
|
/// without forgetting to create notifications caused by timing race conditions.
|
||||||
pub async fn background_fetch(&self, timeout: std::time::Duration) -> Result<()> {
|
pub async fn background_fetch(&self, timeout: std::time::Duration) -> Result<()> {
|
||||||
let result = tokio::time::timeout(timeout, self.background_fetch_without_timeout()).await;
|
let result = tokio::time::timeout(timeout, self.background_fetch_without_timeout()).await;
|
||||||
self.emit_event(EventType::AccountsBackgroundFetchDone);
|
self.emit_event(EventType::AccountsBackgroundFetchDone);
|
||||||
|
|||||||
Reference in New Issue
Block a user