File

teal-src/util/poll.d.tl @ 11444:b3a903032611

util.jsonschema: Fix "uniqueItems" prematurely declaring a match
author Kim Alvefur <zash@zash.se>
date Tue, 09 Mar 2021 02:38:51 +0100
parent 11432:113f3912c7cb
child 11459:86904555bffc
line wrap: on
line source

local record state
	enum waiterr
		"timeout"
		"signal"
	end
	add : function (state, number, boolean, boolean) : boolean
	add : function (state, number, boolean, boolean) : nil, string, number
	set : function (state, number, boolean, boolean) : boolean
	set : function (state, number, boolean, boolean) : nil, string, number
	del : function (state, number) : boolean
	del : function (state, number) : nil, string, number
	wait : function (state, number) : number, boolean, boolean
	wait : function (state, number) : nil, string, number
	wait : function (state, number) : nil, waiterr
	getfd : function (state) : number
end

local record lib
	new : function () : state
	ENOENT : number
	EEXIST : number
end

return lib