1
0
mirror of https://github.com/oliverbooth/VpSharp synced 2024-11-10 03:55:41 +00:00

Return Task, not ValueTask

This commit is contained in:
Oliver Booth 2022-11-29 18:36:50 +00:00
parent 1991cc1b6f
commit 5ed2f4ca31
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ public class VirtualParadiseModelObject : VirtualParadiseObject
/// -or- /// -or-
/// <para><see cref="VirtualParadiseModelObjectBuilder.Owner" /> was assigned.</para> /// <para><see cref="VirtualParadiseModelObjectBuilder.Owner" /> was assigned.</para>
/// </exception> /// </exception>
public async ValueTask ModifyAsync(Action<VirtualParadiseModelObjectBuilder> action) public async Task ModifyAsync(Action<VirtualParadiseModelObjectBuilder> action)
{ {
ArgumentNullException.ThrowIfNull(action); ArgumentNullException.ThrowIfNull(action);

View File

@ -88,7 +88,7 @@ public sealed partial class VirtualParadiseClient
/// <para>An unknown error occurred retrieving the object.</para> /// <para>An unknown error occurred retrieving the object.</para>
/// </exception> /// </exception>
/// <exception cref="ObjectNotFoundException">No object with the ID <paramref name="id" /> was found.</exception> /// <exception cref="ObjectNotFoundException">No object with the ID <paramref name="id" /> was found.</exception>
public async ValueTask<VirtualParadiseObject> GetObjectAsync(int id) public async Task<VirtualParadiseObject> GetObjectAsync(int id)
{ {
if (_objects.TryGetValue(id, out VirtualParadiseObject? virtualParadiseObject)) if (_objects.TryGetValue(id, out VirtualParadiseObject? virtualParadiseObject))
{ {