diff options
| author | TJ DeVries <devries.timothyj@gmail.com> | 2020-09-11 14:39:20 -0400 |
|---|---|---|
| committer | TJ DeVries <devries.timothyj@gmail.com> | 2020-09-11 14:39:20 -0400 |
| commit | 3316dcd7a3f77d9b37d0fb8a3db283e0a551e8d9 (patch) | |
| tree | c128bbda27324c353e6f5544d9736dca57c4ac71 /scratch/threaded_lua.lua | |
| parent | d96d89711ca4a9534a7edb53b29eff4fd4ab1861 (diff) | |
scratch: add thoughts
Diffstat (limited to 'scratch/threaded_lua.lua')
| -rw-r--r-- | scratch/threaded_lua.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scratch/threaded_lua.lua b/scratch/threaded_lua.lua new file mode 100644 index 0000000..68eddb0 --- /dev/null +++ b/scratch/threaded_lua.lua @@ -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)) + |
