async_utils模块
async_utils模块提供非同步计算中使用的基元。
类substance_painter.async_utils.StopSource(stop_source: _substance_painter.async_utils.StopSource) substance_painter.async_utils.StopSource
可用于取消异步计算的对象。
参数: stop_source (_substance_painter.async_utils.StopSource)
request_stop() -> bool substance_painter.async_utils.StopSource.request_stop
发出停止请求。
返回: True(如果可能有stop请求)。
返回类型: bool
stop_requested() -> bool substance_painter.async_utils.StopSource.stop_requested
检查是否已提出停止请求。
如果发出了stop请求,则返回: True。
返回类型: bool
recommendation-more-help
substance-3d-dev-help-painter-python-guide