Relevant
Relevant
CC#
Created by Relevant on 5/5/2024 in #help
Long running process in Blazor Server
Seems to be working for now as I expected. May need to play around with my hacky queueing functionality, but for now, it's not locking my UI thread, so I'm happy
64 replies
CC#
Created by Relevant on 5/5/2024 in #help
Long running process in Blazor Server
No description
64 replies
CC#
Created by Relevant on 5/5/2024 in #help
Long running process in Blazor Server
Oh neat, I'll have to watch that
64 replies
CC#
Created by Relevant on 5/5/2024 in #help
Long running process in Blazor Server
Yeah, that's what I'm doing now anyways. I'm just using a SemaphoneSlim as a queue, but maybe that would be better
64 replies
CC#
Created by Relevant on 5/5/2024 in #help
Long running process in Blazor Server
Cool, that's not too complicated
64 replies
CC#
Created by Relevant on 5/5/2024 in #help
Long running process in Blazor Server
Oh neat, then just write to the channel with a new job request?
64 replies
CC#
Created by Relevant on 5/5/2024 in #help
Long running process in Blazor Server
Ahh Channel, I think a friend told me about that, and I couldn't remember the class
64 replies
CC#
Created by Relevant on 5/5/2024 in #help
Long running process in Blazor Server
Oh cool, I'm interested in knowing more about that, so I'll look more into Enqueue for backgroundQueue
64 replies
CC#
Created by Relevant on 5/5/2024 in #help
Long running process in Blazor Server
Sweet, thanks
64 replies
CC#
Created by Relevant on 5/5/2024 in #help
Long running process in Blazor Server
No, I don't
64 replies
CC#
Created by Relevant on 5/5/2024 in #help
Long running process in Blazor Server
Thanks to you both
64 replies
CC#
Created by Relevant on 5/5/2024 in #help
Long running process in Blazor Server
Well I'll try out Task.Run and I assume that'll do what I was trying to do
64 replies
CC#
Created by Relevant on 5/5/2024 in #help
Long running process in Blazor Server
Yeah, I don't use Thread in a real world situation, was just looking for something that would lock syncronously
64 replies
CC#
Created by Relevant on 5/5/2024 in #help
Long running process in Blazor Server
I gotcha. I guess I always assumed that I only needed to do Task.Run if I was trying to run a sync method as async
64 replies
CC#
Created by Relevant on 5/5/2024 in #help
Long running process in Blazor Server
Yeah, that's what I'm asking, I mean. What do I use to offload that?
64 replies
CC#
Created by Relevant on 5/5/2024 in #help
Long running process in Blazor Server
So Task.Run is different than just calling a method with no await, I assume?
64 replies
CC#
Created by Relevant on 5/5/2024 in #help
Long running process in Blazor Server
Yeah, I guess I don't have much concept of what "background" means
64 replies
CC#
Created by Relevant on 5/5/2024 in #help
Long running process in Blazor Server
I looked into using BackgroundServices, but not sure if that's what I need in this case, since it's not something that is always running while the application is running, but only when a job is submitted
64 replies
CC#
Created by Relevant on 5/5/2024 in #help
Long running process in Blazor Server
Every time the loop hits the await, it does return control back to the UI, but then it locks again the next time it does the Thread.Sleep(5000)
64 replies