Switch Display.flush() to use a promise

That is the modern way to handle operations that cannot complete
immediately.
This commit is contained in:
Pierre Ossman
2023-05-11 22:32:13 +02:00
parent ae9b042df1
commit fb3c8f64e9
8 changed files with 46 additions and 74 deletions

View File

@@ -81,9 +81,3 @@ None
| blitImage | (x, y, width, height, arr, offset, from_queue) | Blit pixels (of R,G,B,A) to the display
| drawImage | (img, x, y) | Draw image and track damage
| autoscale | (containerWidth, containerHeight) | Scale the display
### 2.2.3 Callbacks
| name | parameters | description
| ------- | ---------- | ------------
| onflush | () | A display flush has been requested and we are now ready to resume FBU processing