mirror of
https://github.com/oliverbooth/VpSharp
synced 2024-11-10 03:15:42 +00:00
Return Task, not ValueTask
This commit is contained in:
parent
1991cc1b6f
commit
5ed2f4ca31
@ -44,7 +44,7 @@ public class VirtualParadiseModelObject : VirtualParadiseObject
|
||||
/// -or-
|
||||
/// <para><see cref="VirtualParadiseModelObjectBuilder.Owner" /> was assigned.</para>
|
||||
/// </exception>
|
||||
public async ValueTask ModifyAsync(Action<VirtualParadiseModelObjectBuilder> action)
|
||||
public async Task ModifyAsync(Action<VirtualParadiseModelObjectBuilder> action)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(action);
|
||||
|
||||
|
@ -88,7 +88,7 @@ public sealed partial class VirtualParadiseClient
|
||||
/// <para>An unknown error occurred retrieving the object.</para>
|
||||
/// </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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user