MCPcopy
hub / github.com/encode/starlette / close

Method close

starlette/datastructures.py:472–476  ·  starlette/datastructures.py::UploadFile.close
(self)

Source from the content-addressed store, hash-verified

470 await run_in_threadpool(self.file.seek, offset)
471
472 async def close(self) -> None:
473 if self._in_memory:
474 self.file.close()
475 else:
476 await run_in_threadpool(self.file.close)
477
478 def __repr__(self) -> str:
479 return fclass="st">"{self.__class__.__name__}(filename={self.filename!r}, size={self.size!r}, headers={self.headers!r})"

Callers 1

test_uploadfile_rollingFunction · 0.95

Calls 2

run_in_threadpoolFunction · 0.90
closeMethod · 0.45

Tested by 1

test_uploadfile_rollingFunction · 0.76