def set_result(self, result):
if result is None:<EOL><INDENT>self._result = NONE_RESULT<EOL><DEDENT>else:<EOL><INDENT>self._result = result<EOL><DEDENT>self._event.set()<EOL>self._invoke_callbacks()<EOL>
Sets the result of the Future.

:param result: Result of the Future.