async_utilsモジュール

async_utilsモジュールは、非同期計算で使用されるプリミティブを提供します。

class 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。

戻り値の型: bool

stop_requested() -> bool substance_painter.async_utils.StopSource.stop_requested

停止要求が行われたかどうかを確認します。

停止要求が行われた場合に​を返します。

戻り値の型: bool

recommendation-more-help
substance-3d-dev-help-painter-python-guide