Closed Bug 1891872 Opened 2 years ago Closed 2 years ago

Add async sleep function for Rust

Categories

(Thunderbird :: General, enhancement)

enhancement

Tracking

(thunderbird_esr115 wontfix)

RESOLVED FIXED
127 Branch
Tracking Status
thunderbird_esr115 --- wontfix

People

(Reporter: leftmostcat, Assigned: leftmostcat)

Details

Attachments

(1 file)

We can use moz_task for spawning new async tasks in Rust, but these tasks don't have a means of sleeping if needed. We can implement Future based on an nsITimer to replicate this functionality.

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/614e0e351535
Add sleep function to xpcom_async based on nsITimer. r=thunderbird-reviewers,ikey

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: