Call ``flush()`` after :py:func:`adding ` or :py:func:`clearing ` mission commands. After the return from ``flush()`` any writes are guaranteed to have completed (or thrown an exception) and future reads will see their effects.
(self)
| 1520 | return self._handler.close() |
| 1521 | |
| 1522 | def flush(self): |
| 1523 | """ |
| 1524 | Call ``flush()`` after :py:func:`adding <CommandSequence.add>` or :py:func:`clearing <CommandSequence.clear>` mission commands. |
| 1525 | |
| 1526 | After the return from ``flush()`` any writes are guaranteed to have completed (or thrown an |
| 1527 | exception) and future reads will see their effects. |
| 1528 | |
| 1529 | .. warning:: |
| 1530 | |
| 1531 | This method is deprecated. It has been replaced by |
| 1532 | :py:func:`Vehicle.commands.upload() <Vehicle.commands.upload>`. |
| 1533 | """ |
| 1534 | return self.commands.upload() |
| 1535 | |
| 1536 | # |
| 1537 | # Private sugar methods |