terminal: search.Thread more boilerplate, test starting

This commit is contained in:
Mitchell Hashimoto
2025-11-14 16:29:34 -08:00
parent 466a004c39
commit 19dfc0aa98
2 changed files with 142 additions and 4 deletions

View File

@@ -73,7 +73,7 @@ pub fn BlockingQueue(
not_full_waiters: usize = 0,
/// Allocate the blocking queue on the heap.
pub fn create(alloc: Allocator) !*Self {
pub fn create(alloc: Allocator) Allocator.Error!*Self {
const ptr = try alloc.create(Self);
errdefer alloc.destroy(ptr);