import PromiseKit ... func login() -> Promise<User> { return Promise {seal in // a http request // 成功時xxx seal.fulfill(value..)
確定! 回上一頁