Limited Past
Limited Past
CC#
Created by Limited Past on 12/28/2022 in #help
✅ Quickest way to get a number of decimal places based on an int?
exactly what i was after
5 replies
CC#
Created by Limited Past on 12/28/2022 in #help
✅ Quickest way to get a number of decimal places based on an int?
thanks you 😄
5 replies
CC#
Created by Limited Past on 12/25/2022 in #help
How to use use ReadKey in a Task when i'm using ReadKey elsewhere to stop the program from exiting?
thanks i will look in to that again in the future, for now i just needed a quick fix to continue working on it haha
20 replies
CC#
Created by Limited Past on 12/25/2022 in #help
How to use use ReadKey in a Task when i'm using ReadKey elsewhere to stop the program from exiting?
yup i can do that
20 replies
CC#
Created by Limited Past on 12/25/2022 in #help
How to use use ReadKey in a Task when i'm using ReadKey elsewhere to stop the program from exiting?
probably not the most ideal solution lol, but it works for me for what i need at least
20 replies
CC#
Created by Limited Past on 12/25/2022 in #help
How to use use ReadKey in a Task when i'm using ReadKey elsewhere to stop the program from exiting?
the program will be running 24/7 so im not too fussed with exiting
20 replies
CC#
Created by Limited Past on 12/25/2022 in #help
How to use use ReadKey in a Task when i'm using ReadKey elsewhere to stop the program from exiting?
i solved this by replacing ReadKey (the one used to block exiting the program) with await Task.Delay(-1)
20 replies
CC#
Created by Limited Past on 12/25/2022 in #help
How to use use ReadKey in a Task when i'm using ReadKey elsewhere to stop the program from exiting?
thank you, i'll have a look in to that
20 replies
CC#
Created by Limited Past on 12/25/2022 in #help
How to use use ReadKey in a Task when i'm using ReadKey elsewhere to stop the program from exiting?
essentially, the ReadKey i'm using to stop program execution and exiting is blocking any other ReadKeys im using until that one is read
20 replies
CC#
Created by Limited Past on 12/25/2022 in #help
How to use use ReadKey in a Task when i'm using ReadKey elsewhere to stop the program from exiting?
sorry i don't think my problem was clear...the problem is that when i press a key for input, it's the first ReadKey that reads it (the one which i don't care about because its just to stop it from exiting)
20 replies
CC#
Created by Limited Past on 11/21/2022 in #help
❔ Quickest way to get an async function to run?
Thanks guys, I'll just await it and make the calling functions async
7 replies
CC#
Created by Limited Past on 11/21/2022 in #help
❔ Quickest way to get an async function to run?
i cant await it because its being called from a non-async function
7 replies
CC#
Created by Limited Past on 10/7/2022 in #help
Websocket buffer size performance and latency
var result = await ws.ReceiveAsync(new ArraySegment<byte>(buffer), CancellationToken.None);
5 replies
CC#
Created by Limited Past on 10/7/2022 in #help
Websocket buffer size performance and latency
this buffer using using System.Net.WebSockets;
5 replies
CC#
Created by Limited Past on 10/7/2022 in #help
Websocket buffer size performance and latency
public override Task<WebSocketReceiveResult> ReceiveAsync(ArraySegment<byte> buffer, CancellationToken cancellationToken) => ConnectedWebSocket.ReceiveAsync(buffer, cancellationToken);
5 replies