/// <summary> /// Get an execution unit based on the CLR thread pool. /// </summary> /// <returns>An instance of <see cref="IUnitOfExecution" /> that executes <see cref="Action" /> on the CLR thread pool.</returns> public IUnitOfExecution GetPool() { // we use all remaining threads return(this.poolUnitOfExecution ?? (this.poolUnitOfExecution = new PoolUnitOfExecution(this))); }
/// <summary> /// Get an execution unit based on the CLR thread pool. /// </summary> /// <returns>An instance of <see cref="IUnitOfExecution" /> that executes <see cref="Action" /> on the CLR thread pool.</returns> public IUnitOfExecution GetPool() { // we use all remaining threads return this.poolUnitOfExecution ?? (this.poolUnitOfExecution = new PoolUnitOfExecution()); }