非同步_utils模組
該 async_utils 模組提供了用於非同步計算的原語。
類別 substance_painter.async_utils。停止源(stop_source:_substance_painter.async_utils。停止源) substance_painter.async_utils.StopSource
一個可以用來取消非同步計算的物件。
參數:停止_source(_substance_painter.async_utils。停止來源)
request_stop() -> bool substance_painter.async_utils.StopSource.request_stop
提出停車請求。
退還: 如果能申請停止,那就是真。
回傳類型: bool
stop_requested() -> bool substance_painter.async_utils.StopSource.stop_requested
請確認是否有停車請求。
退貨: 若已提出停止請求,則為真。
回傳類型: bool
recommendation-more-help
substance-3d-dev-help-painter-python-guide