Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal

Search the Community

Showing results for tags 'threads'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • OpenComputers
    • Announcements
    • Feedback
    • IRC
  • Code Central
    • Support
    • Showcase
    • Tutorials
  • Addons & More
    • Addons Mods
    • Architectures
    • OpenEngineering Task Force
  • General
    • Lounge
    • Forum Games
    • Showcase
    • Servers
  • Archives
    • Public Archives

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Minecraft


GitHub


IRC


Fediverse ID


Location


Interests

Found 2 results

  1. Hi, I am new to writing background processes in oc and need some advice. I want to write a small service that reads an energy storage and sends its data on the network. To do this, should I use a detached thread or a timer event? How do i stop a background process? Thank you in advance : )
  2. Hey everyone ! I'm currently creating a client/server app. However when I connect to my server I need to wait for the server to send a message back ( or not (lol) ) So I thought I'll be using threads to wait like 5 seconds for a response and then cancel everything So I need the function inside my thread to return something and i don't know how to do this. modem.open(self.port) local thr = thread.create(function() local _, _, remoteAddr, _, _, message = event.pull("modem_message") -- do something return something end) thr:join(5) -- somehow get the "something" the thread retur
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.