connect_signal_to_future

lsst.ts.m2gui.connect_signal_to_future(signal: Signal, func: Callable) Future

Connect the siganl to asyncio.Future() and execute the function.

Parameters

signalPySide6.QtCore.Signal

Signal.

funcfunc

Function to execute.

Returns

futureasyncio.Future

Future instance that represents an eventual result of an asynchronous operation.