vapor-community / postgresql

Robust PostgreSQL interface for Swift
MIT License
131 stars 33 forks source link

Added support for Notifications that use DispatchSource #58

Closed mlilback closed 7 years ago

mlilback commented 7 years ago

Using a DispatchSource is less wasteful of CPU power as per PostgreSQL documentation.

A parametrized init for Connection.Notification is needed so an application using Notifications does not need to import CPostgreSQL.

Fixed a compiler warning about an unused variable.