parameters: (fut, result)
docstring: Helper setting the result only if the future was not cancelled.
docstring_summary: Helper setting the result only if the future was not cancelled.
docstring_tokens: Helper setting the result only if the future was not cancelled .
function: def _set_result_unless_cancelled(fut, result):
      """Helper setting the result only if the future was not cancelled."""
      if fut.cancelled():
          return
      fut.set_result(result)
function_tokens: def _set_result_unless_cancelled ( fut , result ) : if fut . cancelled ( ) : return fut . set_result ( result )