rigging.util
await_(*coros: t.Coroutine[t.Any, t.Any, R]) -> R | list[R]
#
A utility function that allows awaiting coroutines in a managed thread.
Parameters:
-
*coros
(Coroutine[Any, Any, R]
, default:()
) –Variable number of coroutines to await.
Returns:
-
R | list[R]
–A single result if one coroutine is passed or a list of results if multiple coroutines are passed.
Source code in rigging/util.py
escape_xml(xml_string: str) -> str
#
unescape_xml(xml_string: str) -> str
#
Unescape XML special characters in a string.