Mercurial Hosting > luan
comparison src/luan/modules/http/Server.luan @ 1780:d3ea0380dfb6
rename Thread.fork to Thread.run
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 30 Aug 2023 14:40:45 -0600 |
parents | b82767112d8e |
children |
comparison
equal
deleted
inserted
replaced
1779:96dbbdf1e368 | 1780:d3ea0380dfb6 |
---|---|
57 | 57 |
58 function Server.start_rpc(luan_handler) | 58 function Server.start_rpc(luan_handler) |
59 function Rpc.functions.call(domain,fn_name,...) | 59 function Rpc.functions.call(domain,fn_name,...) |
60 return luan_handler.call_rpc(fn_name,...) | 60 return luan_handler.call_rpc(fn_name,...) |
61 end | 61 end |
62 Thread.fork(Rpc.serve) | 62 Thread.run(Rpc.serve) |
63 end | 63 end |
64 | 64 |
65 local file_regex = regex("^file:(.*)$") | 65 local file_regex = regex("^file:(.*)$") |
66 | 66 |
67 function Server.serve(dir,port) | 67 function Server.serve(dir,port) |