Announcement

Collapse
No announcement yet.

Create Thread

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

  • ElektroSCADA
    started a topic Create Thread

    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

  • fabricio.murta
    replied
    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!

    Leave a comment:


  • samuelgrahame
    replied
    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.

    Leave a comment:

Working...
X