Difference between revisions of "Sync"
Jump to navigation
Jump to search
m |
m (python type annotations and spacing in PEP484) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | + | ||
[[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 | + | cmd.sync(timeout: float = 1.0, poll: float = 0.05) |
</source> | </source> | ||