Skip to content

Commit

Permalink
store error info in funciton Promise<T>.reject(error: Error)
Browse files Browse the repository at this point in the history
  • Loading branch information
jieliangma authored and NianJi committed Apr 8, 2019
1 parent ad58992 commit 8f9a2a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coswift/Promise.swift
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public class Promise<T> {
if state == .pending {
state = .rejected
stateTmp = state
_value = value
_error = error
observers = promiseObservers
promiseObservers = []
}
Expand Down

0 comments on commit 8f9a2a0

Please sign in to comment.