mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Rename Promise::is_settled to Promise::is_fulfilled
This commit is contained in:
parent
dabecfade6
commit
860f2d806f
2 changed files with 2 additions and 2 deletions
|
@ -187,7 +187,7 @@ impl Promise {
|
|||
}
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
pub fn is_settled(&self) -> bool {
|
||||
pub fn is_fulfilled(&self) -> bool {
|
||||
let state = unsafe { GetPromiseState(self.promise_obj()) };
|
||||
match state {
|
||||
PromiseState::Rejected | PromiseState::Fulfilled => true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue