My application need to wait until specific process will be started. I am doing it this way

```
while (Process.GetProcessesByName("someProcess").Length == 0)
{
    Thread.Sleep(100);
}

```

Is there any other way(more elegant) how to accomplish this, with functionality similar to WaitForExit()? Thanks for answers.