SDL_AsyncIOResult(3type)
π SDL_AsyncIOResult π
okay bestie, welcome to the SDL3 DATATYPES corner of the manual π β this one's about SDL_AsyncIOResult, the lil enum that tells you how your async I/O task went. no cap, it's short, it's sweet, it's giving "three possible endings and that's it." β¨
πΈ NAME πΈ
SDL_AsyncIOResult β the possible outcomes of an asynchronous I/O task. that's it. that's the whole vibe. π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_asyncio.h>
typedef enum SDL_AsyncIOResult
{
SDL_ASYNCIO_COMPLETE, /**< request was completed without error */
SDL_ASYNCIO_FAILURE, /**< request failed for some reason; check SDL_GetError()! */
SDL_ASYNCIO_CANCELED /**< request was canceled before completing. */
} SDL_AsyncIOResult;
so yeah, three members, each one a whole mood. let's break it down π¦
SDL_ASYNCIO_COMPLETEβ the request was completed without error. slay!! she ate, no notes, it's done and it worked. πSDL_ASYNCIO_FAILUREβ the request failed for some reason. π bestie please go checkSDL_GetError()immediately, the answer is in there, do not just sit there staring at this enum value. πSDL_ASYNCIO_CANCELEDβ the request was canceled before completing. not a fail, not a win, just... canceled. it never got to finish its little story. π₯²
fr fr, do NOT forget thatSDL_ASYNCIO_FAILUREmeans you gotta callSDL_GetError()β that's your only clue and it's right there waiting for you. π
π AVAILABILITY π
this enum is available since SDL 3.2.0. so if you're on something older, she's simply not there yet, sorry babe. π§
and that's the whole page, you're basically an async I/O expert now, i don't make the rules. π
this lil datatype page comes to you from Simple Directmedia Layer, SDL 3.4.18 edition β mwah, take care of her, and go check SDL_GetError() when things go wrong. π«Άπ
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms