def set_executor(self, executor):
"""
Set the given function to run in the promise. It will call its first
argument with its result, or its second argument with an error.
"""
# Pickle the function and save it
self.executor_dill = dill.dumps(executor)
评论列表
文章目录