[swift-server-dev] Prototype of the discussed HTTP API Spec
Michael Chiu
hatsuneyuji at icloud.com
Tue May 30 11:39:27 CDT 2017
> I don't quite see why we need (or should even offer) a synchronous API for anything that involves IO (disk, network, ...). Sure, many of us would like to have a synchronous and non-blocking programming model, that'd be great. Today in Swift unfortunately we can only go asynchronous&non-blocking or synchronous&blocking (causing undefined behaviour [1] with setjmp/longjmp to get synchronous&non-blocking is cool but certainly not supported today).
I’m a bit confused here, synchronous&non-blocking can be done by kqueue/epoll/select/poll in swift.
It is true that kqueue and epoll are some low level C API but not having synchronous API basically screwed everyone who prefer to do their own scheduling for whatever reason.
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-server-dev/attachments/20170530/486d7326/attachment.html>
More information about the swift-server-dev
mailing list