Skip to content

Instantly share code, notes, and snippets.

@ionixjunior
Created December 20, 2017 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ionixjunior/87fd41c6e8b68960f8cf23b7c767915c to your computer and use it in GitHub Desktop.
Save ionixjunior/87fd41c6e8b68960f8cf23b7c767915c to your computer and use it in GitHub Desktop.
Teste de construtor assíncrono
namespace Core
{
public class YourClass
{
private Task _taskInitAsync;
public YourClass()
{
_taskInitAsync = TaskInitAsync();
}
private async Task TaskInitAsync()
{
...
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment