Rename Promise::is_settled to Promise::is_fulfilled

This commit is contained in:
Anthony Ramine 2017-09-22 14:06:23 +02:00
parent dabecfade6
commit 860f2d806f
2 changed files with 2 additions and 2 deletions

View file

@ -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,