Mercurial Hosting > luan
view host/admin/src/hi.txt.luan @ 2033:905a6ade55f2 default tip
change corePoolSize from 1 to 10
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Tue, 04 Nov 2025 13:30:21 -0700 |
| parents | b8e5d53c4fc9 |
| children |
line wrap: on
line source
local Io = require "luan:Io.luan" local Http = require "luan:http/Http.luan" local Thread = require "luan:Thread.luan" local Time = require "luan:Time.luan" local globals = Thread.global_map("globals") globals.i = 0 local function inc() globals.i = globals.i + 1 end Thread.schedule( inc, {repeating_delay=Time.period{minutes=1}} ) return function() Io.stdout = Http.response.text_writer() %>hi <%=globals.i%><% end
