async def METHOD_NAME(path: Union[str, PurePath], content: str) -> None:
    """
    asynchronously set content of a file to a given string `content`.
    """
    def writefile_sync(path: Union[str, PurePath], content: str) -> int:
        with open(path, "w", encoding="utf8") as f:
            return f.write(content)
    await to_thread(writefile_sync, path, content)