JobQueue.AddJob C# (CSharp) Method

AddJob() public method

public AddJob ( Exception, job ) : void
job Exception,
return void
        public void AddJob(Exception job)
        {
            pendingJobs.Enqueue(job);
        }
        public JobQueue()

Usage Example

Example #1
0
    public void ReturnFailedJob()
    {
        if (targetJob.GetJobType() != "Wander")
        {
            Debug.Log("Returning failed job: " + targetJob.GetJobType());

            failedJobs.Add(targetJob);
            jobQueue.AddJob(targetJob);
        }

        // Clear the job
        targetJob = currentJob = null;
    }
All Usage Examples Of JobQueue::AddJob