BackgroundAppBackend#

class ansys.mechanical.core.embedding.rpc.server.BackgroundAppBackend(backgroundapp: ansys.mechanical.core.embedding.background.BackgroundApp)#

Backend for the python server where mechanical uses the background thread.

Overview#

try_post

Try to post to mechanical’s main thread.

get_app

Get the app object.

Import detail#

from ansys.mechanical.core.embedding.rpc.server import BackgroundAppBackend

Method detail#

BackgroundAppBackend.try_post(callable: Callable) Any#

Try to post to mechanical’s main thread.

BackgroundAppBackend.get_app() ansys.mechanical.core.embedding.app.App#

Get the app object.