Sync: Difference between revisions

From PyMOLWiki
Jump to navigation Jump to search
No edit summary
m (python type annotations and spacing in PEP484)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==DESCRIPTION==
 
[[sync]] is an API-only function which waits until all current commands have been executed before returning.  A timeout can be used to insure that this command eventually returns.
[[sync]] is an API-only function which waits until all current commands have been executed before returning.  A timeout can be used to insure that this command eventually returns.


==PYMOL API==
==PYMOL API==
<source lang="python">
<source lang="python">
cmd.sync(float timeout=1.0,float poll=0.05)
cmd.sync(timeout: float = 1.0, poll: float = 0.05)
</source>
</source>


Line 10: Line 10:
[[frame]]
[[frame]]


[[Category:Commands|sync]]
[[Category:Commands|Sync]]

Latest revision as of 10:21, 25 April 2023

sync is an API-only function which waits until all current commands have been executed before returning. A timeout can be used to insure that this command eventually returns.

PYMOL API

cmd.sync(timeout: float = 1.0, poll: float = 0.05)

SEE ALSO

frame