We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Task
ValueTask
public Task<int> Sum(int a, int b) => Task.FromResult(a + b); public ValueTask<int> Sum(int a, int b) => new ValueTask<int>(a + b);
.NET:
public int Sum(int a, int b) => a + b; // Requires dirty naming (ex: namespace). using DupeNukem.Synchronized; messenger.RegisterFunc<int, int, int>(this.Sum);
JavaScript:
/* async */ function add(a, b) { return a + b; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Will validate return type both
Task
andValueTask
.Will validate any constant return type with synchronized method/function.
.NET:
JavaScript:
The text was updated successfully, but these errors were encountered: