image_loaded(3)
π NAME π
okay so this is image_loaded(3), straight from the Arcan Lua API (image manual), and it is literally the vibe check for an asynchronous video object source π
.
image_loaded β asks how your async source is doing. Is it loaded? Is it still cooking? Bestie, weβre about to find out πβ¨
β¨ SYNOPSIS β¨
0 or 1
image_loaded( vid )
π DESCRIPTION π
So hereβs the tea π«: with asynchronous image operations, a load can potentially stall for an infinite time π. Like, not even joking β it might just sit there forever. This function is your little status peek π.
It queries the status of that asynchronous load and gives you true (1) if the image has loaded and decoded successfully, or 0 if itβs still in the process of being loaded πΈ.
Thatβs it. Thatβs the whole mood. Return values are giving very much yes or not yet, babe π.
π EXAMPLE π
function image_loaded0()
a = load_image_asynch("test.png", function(source, status)
print(status.kind, image_loaded(source)); end);
print(a, image_loaded(source));
end
π¦ SEE ALSO π¦
mwah π this cutie-patootie page is from the image manual, dated October 2026, and itβs literally image_loaded(3) β periodt π§ββοΈπ
π¦ where this page comes from
- nixos 26.05: arcan 0.7.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms