/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
osx/MPMessagePack/RPC/MPRequestor.m
28 строк
582 B
Mike Maxim
installer upgrades
28 дек 2018, 21:54
28 дек 2018, 21:54
363e546
Код
Авторство
О чём код?
// // MPRequestor.m // MPMessagePack // // Created by Gabriel on 10/14/15. // Copyright © 2015 Gabriel Handford. All rights reserved. // #import "MPRequestor.h" @interface MPRequestor () @property MPRequestCompletion completion; @end @implementation MPRequestor + (instancetype)requestWithCompletion:(MPRequestCompletion)completion { MPRequestor *request = [[MPRequestor alloc] init]; request.completion = completion; return request; } - (void)completeWithResult:(id)result error:(NSError *)error { self.completion(error, result); self.completion = nil; } @end