This file contains hidden or 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
| MAIN_BRANCH="main" | |
| alias restart="exec zsh -l" | |
| alias ts="tig status" | |
| alias gs="git status" | |
| alias gpom="git push origin $MAIN_BRANCH" | |
| alias gcm="git checkout $MAIN_BRANCH" | |
| alias m="git checkout $MAIN_BRANCH" | |
| alias gf="git fetch --all -P" | |
| alias grom="git rebase origin/$MAIN_BRANCH" | |
| alias groq="git rebase origin/qa" |
This file contains hidden or 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
| public static class TaskAsyncExtensions | |
| { | |
| public static Task<T> MakeAsync<T>(Action<Action<T>> syncAction) | |
| { | |
| var taskCompletion = new TaskCompletionSource<T>(TaskCreationOptions.RunContinuationsAsynchronously); | |
| syncAction.Invoke(taskCompletion.SetResult); | |
| return taskCompletion.Task; | |
| } |
OlderNewer