-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
samaysar
committed
Jul 22, 2024
1 parent
b561bf1
commit 10b630e
Showing
43 changed files
with
37,104 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
#### [DevFast.Net.Extensions](index.md 'index') | ||
### [DevFast.Net.Extensions.Etc](DevFast.Net.Extensions.Etc.md 'DevFast.Net.Extensions.Etc') | ||
|
||
## Asynchro Class | ||
|
||
Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). | ||
|
||
```csharp | ||
public static class Asynchro | ||
``` | ||
- *Properties* | ||
- **[CompletedTask](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.CompletedTask 'DevFast.Net.Extensions.Etc.Asynchro.CompletedTask')** | ||
- *Methods* | ||
- **[FromResult<TResult>(TResult)](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult) 'DevFast.Net.Extensions.Etc.Asynchro.FromResult<TResult>(TResult)')** | ||
- **[Run<T>(this T)](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT) 'DevFast.Net.Extensions.Etc.Asynchro.Run<T>(this T)')** | ||
|
||
## Asynchro Class | ||
|
||
Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). | ||
```csharp | ||
public static class Asynchro | ||
``` | ||
|
||
Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') 🡒 Asynchro | ||
### Properties | ||
|
||
<a name='DevFast.Net.Extensions.Etc.Asynchro.CompletedTask'></a> | ||
|
||
## Asynchro.CompletedTask Property | ||
|
||
Gets a task that has already completed successfully. | ||
|
||
```csharp | ||
public static System.Threading.Tasks.ValueTask CompletedTask { get; } | ||
``` | ||
|
||
#### Property Value | ||
[System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask') | ||
### Methods | ||
|
||
<a name='DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult)'></a> | ||
|
||
## Asynchro.FromResult<TResult>(TResult) Method | ||
|
||
Creates a [System.Threading.Tasks.ValueTask<>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') that's completed successfully with the specified result. | ||
```csharp | ||
public static System.Threading.Tasks.ValueTask<TResult> FromResult<TResult>(TResult result); | ||
``` | ||
#### Type parameters | ||
|
||
<a name='DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult'></a> | ||
|
||
`TResult` | ||
|
||
The type of the result returned by the task. | ||
#### Parameters | ||
|
||
<a name='DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).result'></a> | ||
|
||
`result` [TResult](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult 'DevFast.Net.Extensions.Etc.Asynchro.FromResult<TResult>(TResult).TResult') | ||
|
||
The result to store into the completed task. | ||
|
||
#### Returns | ||
[System.Threading.Tasks.ValueTask<](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1')[TResult](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.FromResult_TResult_(TResult).TResult 'DevFast.Net.Extensions.Etc.Asynchro.FromResult<TResult>(TResult).TResult')[>](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask-1 'System.Threading.Tasks.ValueTask`1') | ||
The successfully completed task. | ||
|
||
<a name='DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT)'></a> | ||
|
||
## Asynchro.Run<T>(this T) Method | ||
|
||
Starts the given task if not already started. Returns it back after starting for chaining or awaiting. | ||
|
||
```csharp | ||
public static T Run<T>(this T task) | ||
where T : System.Threading.Tasks.Task; | ||
``` | ||
#### Type parameters | ||
|
||
<a name='DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T'></a> | ||
|
||
`T` | ||
#### Parameters | ||
|
||
<a name='DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).task'></a> | ||
|
||
`task` [T](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T 'DevFast.Net.Extensions.Etc.Asynchro.Run<T>(this T).T') | ||
|
||
Task to start | ||
|
||
#### Returns | ||
[T](DevFast.Net.Extensions.Etc.Asynchro.md#DevFast.Net.Extensions.Etc.Asynchro.Run_T_(thisT).T 'DevFast.Net.Extensions.Etc.Asynchro.Run<T>(this T).T') |
Large diffs are not rendered by default.
Oops, something went wrong.
2,205 changes: 2,205 additions & 0 deletions
2,205
docs/net6.0/DevFast.Net.Extensions.Etc.Lambdas.md
Large diffs are not rendered by default.
Oops, something went wrong.
3,878 changes: 3,878 additions & 0 deletions
3,878
docs/net6.0/DevFast.Net.Extensions.Etc.PipeLine.md
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#### [DevFast.Net.Extensions](index.md 'index') | ||
|
||
## DevFast.Net.Extensions.Etc Namespace | ||
|
||
Under this [namespace](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace 'https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/namespace') we have collected several extension methods on disparate types (for e.g. [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Func<>](https://docs.microsoft.com/en-us/dotnet/api/System.Func-1 'System.Func`1'), etc... ). | ||
|
||
| Classes | | | ||
| :--- | :--- | | ||
| [Asynchro](DevFast.Net.Extensions.Etc.Asynchro.md 'DevFast.Net.Extensions.Etc.Asynchro') | Extension methods on the [System.Threading.Tasks.Task](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task 'System.Threading.Tasks.Task'), [System.Threading.Tasks.ValueTask](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.ValueTask 'System.Threading.Tasks.ValueTask'). | | ||
| [Errors](DevFast.Net.Extensions.Etc.Errors.md 'DevFast.Net.Extensions.Etc.Errors') | Extension methods to throw or consume various kind of exceptions. | | ||
| [Lambdas](DevFast.Net.Extensions.Etc.Lambdas.md 'DevFast.Net.Extensions.Etc.Lambdas') | Extension methods to execute lambdas. | | ||
| [PipeLine](DevFast.Net.Extensions.Etc.PipeLine.md 'DevFast.Net.Extensions.Etc.PipeLine') | Extension methods on Lambdas to create a executable Pipeline. | |
Oops, something went wrong.