Retoor software development Projects Research SearchXNG
Register Sign In

12 lines
193 B
JavaScript
Raw Normal View History

feat: add bytes.indexOf, server.acceptBatch, server.pendingCount, stdin data callback, and coverage/valgrind make targets Implement `bytesIndexOf` foreign function supporting optional start offset for searching byte sequences. Add `serverAcceptBatch` and `serverPendingCount` to net module for batch accepting connections and querying pending queue size. Refactor `stdinFileTimerCallback` to pass read bytes to Wren callback instead of null, with separate handling for EOF. Introduce `coverage_64bit` build config with gcov flags, plus `coverage`, `valgrind`, `clean-coverage`, and `publish` phony targets in Makefile. Fix memory leak in regex by nullifying freed pointers on allocation failure.
2026-01-26 12:29:25 +01:00
// retoor <retoor@molodetz.nl>
feat: add Stdin class with readLine and async stdin read support in io module
2015-10-17 06:05:24 +02:00
import "io" for Stdin
Stdin.readLine() // stdin: one line
var error = Fiber.new {
Stdin.readLine()
}.try()
System.print(error) // expect: Stdin was closed.
Reference in New Issue Copy Permalink
fe1f129349
wren/test/io/stdin/read_line_eof.wren
Response time: 57ms
Mail Licenses API