MCPcopy
hub / github.com/dronekit/dronekit-python / flush

Method flush

dronekit/__init__.py:1522–1534  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 4

loggerFunction · 0.80
test_227Function · 0.80
logMethod · 0.80
gotoMethod · 0.80

Calls 1

uploadMethod · 0.80

Tested by 2

test_227Function · 0.64
logMethod · 0.64