public IEnumerator CheckBurstAsyncJob()
    {
        JobsUtility.JobCompilerEnabled = true;
        BurstCompiler.Options.EnableBurstCompileSynchronously = false;

        var iteration = 0;
        var result    = 0.0f;
        var array     = new NativeArray <float>(10, Allocator.Persistent);

        while (result == 0.0f && iteration < MaxIterations)
        {
            array[0] = 0.0f;
            var job = new BurstJobTester.MyJobAsync {
                Result = array
            };
            job.Schedule().Complete();
            result = job.Result[0];
            iteration++;
            yield return(null);
        }
        Debug.Log($"{iteration} frames showed before burst-compiled job executed.");
        array.Dispose();
        Assert.AreNotEqual(0.0f, result, "The test timed out. Probably async compilation is not working properly.");
        BurstCompiler.Options.EnableBurstCompileSynchronously = true;
        Thread.Sleep(10000);
    }
    public IEnumerator CheckBurstAsyncJob()
    {
        BurstCompiler.Options.EnableBurstCompileSynchronously = false;
        BurstCompiler.Options.EnableBurstCompilation          = true;

        var iteration = 0;
        var result    = 0.0f;
        var array     = new NativeArray <float>(10, Allocator.Persistent);

        while (result == 0.0f && iteration < MaxIterations)
        {
            array[0] = 0.0f;
            var job = new BurstJobTester.MyJobAsync {
                Result = array
            };
            job.Schedule().Complete();
            result = job.Result[0];
            iteration++;
            yield return(null);
        }
        array.Dispose();
        Assert.AreNotEqual(0.0f, result);
    }