Comments (14)
There are a few places need to be guarded properly. Let me change it first.
from netuv.
pr #46
from netuv.
Hi, do you have full stack trace for this?
from netuv.
I believe it might be a better option to just do the schedule, then wait for the loop to start and process.
e.g. wait for the loop in a run state where it is guaranteed not to be null.
from netuv.
Let me change it a bit and let you to have a look at it.
from netuv.
the error's stack trace,just use the loopthread example
Loop thread error System.NullReferenceException: Object reference not set to an instance of an object.
at NetUV.Core.Channels.EventLoop.Schedule(Action`1 action) in C:\Users\XXX\Desktop\NetUV\src\NetUV.Core\Channels\EventLoop.cs:line 94
at LoopThread.Program.Main(String[] args) in C:\Users\XXX\Desktop\NetUV\examples\LoopThread\Program.cs:line 31.
line 94:
this.asyncHandle.Send();
from netuv.
I see, thanks.
from netuv.
Well, the intention is that
await RunLoopAsync();
then call
eventLoop.Schedule
I will fix the example.
from netuv.
The code shows that await RunLoopAsync();
will block util the loop is closed,so eventLoop.Schedule
will not be called properly....
from netuv.
The EventLoop class is kind of experimental, forget to put some attribute on it.
from netuv.
😄
from netuv.
#48, try it out.
from netuv.
works~ 👍
from netuv.
PR #48
from netuv.
Related Issues (20)
- libuv version on linux HOT 8
- Question about ReadableBuffer.ReadString with separator HOT 2
- IndexOutOfRangeException occurred in Readbytes HOT 2
- How to consume data HOT 8
- How to get a callback on server when client disconnect HOT 4
- Multiple loops and threads HOT 10
- When to Dispose Async HOT 2
- System.NullReferenceException In WriteRequest.Release() HOT 7
- System.AccessViolationException In StreamHandle.WriteStream HOT 4
- SegFault on Linux when server actively terminates client connection HOT 57
- Support websocket HOT 1
- update libuv v1.19.1? HOT 1
- how can i use multi event loop? HOT 4
- Can I join you? HOT 1
- can you give a performance and stable test HOT 1
- sir,you should update your prj to v2.1 HOT 4
- Support .NET Core 2.1 new memory primitives like Memory<T> and Span<T> HOT 1
- 怎么才能正确使用 HOT 5
- OnError never called HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netuv.