Coder Social home page Coder Social logo

Comments (9)

treeform avatar treeform commented on July 28, 2024

That should be a warning? It should still compile.

from ws.

Austaras avatar Austaras commented on July 28, 2024

It's an error and no binary is generated.

from ws.

treeform avatar treeform commented on July 28, 2024

What version of nim are you using?

from ws.

Austaras avatar Austaras commented on July 28, 2024

Nim Compiler Version 1.0.0 [Linux: amd64]
Compiled at 2019-10-01
Copyright (c) 2006-2019 by Andreas Rumpf

git hash: bb9298ca3b9e6f3bd4af8bd6c66ee7932b9e450d

from ws.

skellock avatar skellock commented on July 28, 2024
import ws, asyncdispatch, asynchttpserver

proc shrug() =
  var server = newAsyncHttpServer()
  # ... and the rest of your code

shrug()

¯\(ツ)

@treeform thank for writing this lib!

from ws.

Austaras avatar Austaras commented on July 28, 2024

It only fails to compile when mutli thread is enabled

from ws.

treeform avatar treeform commented on July 28, 2024

Should I make a multi threaded version? I need to make it fail with threads.

from ws.

Austaras avatar Austaras commented on July 28, 2024

please do!

from ws.

treeform avatar treeform commented on July 28, 2024

Here you go: https://github.com/treeform/ws/blob/master/tests/chat_threads.nim

from ws.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.