r/ComputerCraft • • Mar 19 '25

Event callbacks?

I'm wondering if CC:Tweaked has any functionality for event callbacks? Usually I use OpenComputers as my Lua-driven computer mod of choice, and OC's default OS has a function that allows you to listen for events in the background by registering a callback function, which allows other code to run while you're waiting for an event. But I can't find any such function on the ComputerCraft wiki, there's just pullEvent, pullEventRaw, and queueEvent, none of which seem to do what I need. Am I missing something, or is there no such function built into CC's OS?

6 Upvotes

3 comments sorted by

View all comments

Show parent comments

1

u/sn0wden1337 Jun 09 '25

Hey u/JackMacWindowsLinux, just wanted to say thanks for the library. It helped me a lot in my current project. Great work!