Skip to content
This repository has been archived by the owner on Feb 9, 2020. It is now read-only.

mndrix/chan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Synopsis

:- use_module(library(chan),[]).
?-  chan:new(Tx,Rx),
    chan:send(Tx, hello),
    chan:recv(Rx, Message).
Message = hello .

Description

SWI-Prolog has great primitives for communicating between threads. This library is for applications which prefer a directional channel abstraction similar to that used in Go or Rust.

This is a relatively thin API on top of SWI-Prolog's message queues.

Installation

Using SWI-Prolog 7.1 or later:

?- pack_install(chan).

This module uses semantic versioning.

Source code available and pull requests accepted at http://github.com/mndrix/chan

About

Directional channels for Prolog

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages