Skip to content

Commit

Permalink
add luvit thread support.
Browse files Browse the repository at this point in the history
local timer = require'timer'
local thread = require'thread'

local interval = timer.setInterval(1000, function ()
    print('Main Thread',thread.self(), os.date())
end)

print("Main ...running...")

function entry(cli)
  local timer = require'timer'
  local thread = require'thread'
  local interval = timer.setInterval(1000, function ()
    print(cli,thread.self(),os.date())
  end)
end

thread.start(entry,'cli1')
thread.start(entry,'cli2')
thread.start(entry,'cli3')

add http-cookie support
  • Loading branch information
zhaozg authored and creationix committed Aug 20, 2015
1 parent ee31ca0 commit 0f24a68
Show file tree
Hide file tree
Showing 3 changed files with 512 additions and 0 deletions.

0 comments on commit 0f24a68

Please sign in to comment.