## TaskScheduler::FromCurrentSynchronizationContext method


Creates a [TaskScheduler](../) associated with the current thread.

```cpp
static SharedPtr<TaskScheduler> System::Threading::Tasks::TaskScheduler::FromCurrentSynchronizationContext()
```


### ReturnValue

A [TaskScheduler](../) associated with the current thread.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [TaskScheduler](../)
* Class [TaskScheduler](../)
* Namespace [System::Threading::Tasks](../../)
* Library [Aspose.PDF for C++](../../../)
