Skip to content

SavesPending

Narta Xaymar Dirks edited this page Oct 28, 2026 · 1 revision
BlitzLLVM

SavesPending 〔BlitzLLVM〕

SavesPending:Int32

Returns: How many saves are still being encoded or written.

Description

〔BlitzLLVM〕 This command does not exist in the original Blitz products. BlitzLLVM adds it.

Gives the number of saves that are not done yet. With AsyncSaving off every save is done when the command returns, so this is always 0. A loop that waits for it costs little, and a program that does not wait for it still gets its files (see AsyncSaving).

Examples

Graphics 320, 240, 0, 2
Cls
Color 0, 200, 0
Oval 20, 20, 200, 160, 1
Flip
AsyncSaving True
SaveBuffer FrontBuffer(), "pending.jxl", "lossless=1,effort=9"
While SavesPending() > 0
	Delay 10
Wend
Print "done, failed: " + SavesFailed()
WaitKey

This is a BlitzLLVM extension: the originals have no asynchronous saving.

Related Commands

SaveImage, SavesFailed 〔BlitzLLVM〕, ScaleImage, TFormFilter

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally