summaryrefslogtreecommitdiff
path: root/graphics/asymptote/LspCpp/include/LibLsp/JsonRpc/MessageProducer.h
blob: ab7a29a17f76cd9624febc4685a3e4e034cda9f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once
#include <string>
#include <functional>

class MessageProducer
{
public:
	
	
	typedef  std::function< void(std::string&&) >  MessageConsumer;
	virtual  ~MessageProducer() = default;
	virtual void listen(MessageConsumer) = 0;
};