Mark the future done and set its result. If the future is already done when this method is called, raises InvalidStateError.
asyncio/Future.set_result
Future.set_result