Announcement

Collapse
No announcement yet.

Create Thread

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Create Thread

    Hi

    It is possible to create a Thread in bridge.net?

    Example:
                var thread = new System.Threading.Thread(threadFunction)
                {
                    Name = "threadName",
                    Priority = System.Threading.ThreadPriority.Highest,
                    IsBackground = true
                };
                thread.Start();
    Best regards
    Piotr

    #2
    https://stackoverflow.com/questions/...multithreading

    Javascript does not support threads. because bridge converts c# to javascript it still has the same limitations as javascript

    you can use setTimeout to execute code at the same time, just use 0 as the timeout argument.

    Comment


      #3
      Hello @ElektroSCADA!

      The response from samuelgrahame is pretty actual. But maybe what you need you can just achieve with the async-await concept, which is basically an abstraction of threading on C#: https://deck.net/async

      Hope this helps!

      Comment

      Working...
      X