scratch: add thoughts

This commit is contained in:
TJ DeVries
2020-09-11 14:39:20 -04:00
parent d96d89711c
commit 3316dcd7a3
3 changed files with 58 additions and 0 deletions

15
scratch/threaded_lua.lua Normal file
View File

@@ -0,0 +1,15 @@
local uv = require('luv')
-- print(vim.inspect(uv))
local my_table = {}
local my_value = 1
local table_adder = uv.new_thread(function(tbl)
table.insert(tbl, "HELLO")
end, my_table)
uv.thread_join(table_adder)
-- print(vim.inspect(MY_TABLE))