예제 #1
0
파일: remote.py 프로젝트: manodeep/vaex
 def callback(future):
     # print(("callback", future, future.result()))
     e = future.exception()
     if e:
         # print(("reject", e))
         promise.reject(e)
     else:
         promise.fulfill(future.result())
예제 #2
0
 def callback(future):
     # print(("callback", future, future.result()))
     e = future.exception()
     if e:
         # print(("reject", e))
         promise.reject(e)
     else:
         promise.fulfill(future.result())