EMILUA(3em)
π NAME
Emilua β Lua execution engine. Yep bestie, youβre in the Emilua reference page (EMILUA(3em)), and weβre about to make stream.write_at_least make sense. Periodt. β¨
β¨ SYNOPSIS β¨
local stream = require "stream"
stream.write_at_least(io_object, buffer: byte_span, minimum: integer) -> integer
π¦ DESCRIPTION π¦
Okay so this one writes data until a minimum number of bytes has been transferred, and it blocks the current fiber until it completes or errs. No cap. π
It returns the number of bytes written. Thatβs the whole vibe. π
This is the same deal as the async_write overload1 reference in Boost.Asio: https://www.boost.org/doc/libs/1_77_0/doc/html/boost_asio/reference/async_write/overload1.html. And the Boost.Asio docs say, direct quote:
This operation is implemented in terms of zero or more calls to the streamβsasync_write_somefunction, and is known as a composed operation. The program must ensure that the stream performs no other write operations (such asasync_write, the streamβsasync_write_somefunction, or any other composed operations that perform writes) until this operation completes.
So yeah β keep the streamβs other write operations out of the group chat until this one is done. Itβs giving composed operation, and itβs lowkey important. π«Άπ₯
xoxo, your Unix bestie π
π β this page is from Emilua 0.12.1-nixpkgs1, dated 1980-01-01, and itβs the EMILUA(3em) manual page. Slay. ππ
π¦ where this page comes from
- nixos 26.05: emilua 0.12.1
- nixpkgs unstable: emilua 0.12.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms