localepic_thread=c3d.thread.new_thread([[
local c = c3d.thread.get_channel("load_channel")
for i=1,10 do
c:supply(i) -- adds a value to the channel and waits for it to be read
end
]])-- makes a thread that adds 10 numbers to the load_channelfunctionc3d.load()epic_thread:start()-- marks the thread to be executedendfunctionc3d.update()localc=c3d.thread.get_channel("load_channel")ifc.get_count()>0then-- checks how many things are saved in the queueprint(c:pop())-- reads a value from the channelelseerror("finished reading the load channel",0)endend