Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(102)  |  Call(83)  |  Derive(0)  |  Import(19)

src/l/a/landline-server-HEAD/co.whatisuplabs.ldln/lib/play/python/Lib/site-packages/Rpyc/Demo/demo-5.py   landline-server(Download)
#
import time
from Rpyc import SocketConnection, Async
 
c1 = SocketConnection("localhost")
 
# f1 is an async proxy to the server's sleep function
f1 = Async(c1.modules.time.sleep)
 
# this would block the server for 9 seconds
r1 = f1(9)
# and this would block it for 11
r2 = f1(11)
# for this, we'll need another connection, and another proxy:
c2 = SocketConnection("localhost")
f2 = Async(c2.modules.time.sleep)
 
# now we'll do the same as the above, but this time, it will happen simulatenously

src/r/e/restcommander-HEAD/play-1.2.4/python/Lib/site-packages/Rpyc/Demo/demo-5.py   restcommander(Download)
#
import time
from Rpyc import SocketConnection, Async
 
c1 = SocketConnection("localhost")
 
# f1 is an async proxy to the server's sleep function
f1 = Async(c1.modules.time.sleep)
 
# this would block the server for 9 seconds
r1 = f1(9)
# and this would block it for 11
r2 = f1(11)
# for this, we'll need another connection, and another proxy:
c2 = SocketConnection("localhost")
f2 = Async(c2.modules.time.sleep)
 
# now we'll do the same as the above, but this time, it will happen simulatenously

src/h/e/heroku-playframework-HEAD/play-1.2.2RC1/python/Lib/site-packages/Rpyc/Demo/demo-5.py   heroku-playframework(Download)
#
import time
from Rpyc import SocketConnection, Async
 
c1 = SocketConnection("localhost")
 
# f1 is an async proxy to the server's sleep function
f1 = Async(c1.modules.time.sleep)
 
# this would block the server for 9 seconds
r1 = f1(9)
# and this would block it for 11
r2 = f1(11)
# for this, we'll need another connection, and another proxy:
c2 = SocketConnection("localhost")
f2 = Async(c2.modules.time.sleep)
 
# now we'll do the same as the above, but this time, it will happen simulatenously

src/j/f/jfinal-app-HEAD/jfgen/python/Lib/site-packages/Rpyc/Demo/demo-5.py   jfinal-app(Download)
#
import time
from Rpyc import SocketConnection, Async
 
c1 = SocketConnection("localhost")
 
# f1 is an async proxy to the server's sleep function
f1 = Async(c1.modules.time.sleep)
 
# this would block the server for 9 seconds
r1 = f1(9)
# and this would block it for 11
r2 = f1(11)
# for this, we'll need another connection, and another proxy:
c2 = SocketConnection("localhost")
f2 = Async(c2.modules.time.sleep)
 
# now we'll do the same as the above, but this time, it will happen simulatenously

src/l/a/landline-server-HEAD/co.whatisuplabs.ldln/lib/play/python/Lib/site-packages/Rpyc/Demo/demo-4.py   landline-server(Download)
import time
from Rpyc import SocketConnection, Async
 
c = SocketConnection("localhost")
c2 = SocketConnection("localhost")
 
huge_xml = "<blah a='5' b='6'>   " * 50000 + "   </blah> " * 50000
parseString = Async(c.modules.xml.dom.minidom.parseString)
res = parseString(huge_xml)

src/r/e/restcommander-HEAD/play-1.2.4/python/Lib/site-packages/Rpyc/Demo/demo-4.py   restcommander(Download)
import time
from Rpyc import SocketConnection, Async
 
c = SocketConnection("localhost")
c2 = SocketConnection("localhost")
 
huge_xml = "<blah a='5' b='6'>   " * 50000 + "   </blah> " * 50000
parseString = Async(c.modules.xml.dom.minidom.parseString)
res = parseString(huge_xml)

src/h/e/heroku-playframework-HEAD/play-1.2.2RC1/python/Lib/site-packages/Rpyc/Demo/demo-4.py   heroku-playframework(Download)
import time
from Rpyc import SocketConnection, Async
 
c = SocketConnection("localhost")
c2 = SocketConnection("localhost")
 
huge_xml = "<blah a='5' b='6'>   " * 50000 + "   </blah> " * 50000
parseString = Async(c.modules.xml.dom.minidom.parseString)
res = parseString(huge_xml)

src/j/f/jfinal-app-HEAD/jfgen/python/Lib/site-packages/Rpyc/Demo/demo-4.py   jfinal-app(Download)
import time
from Rpyc import SocketConnection, Async
 
c = SocketConnection("localhost")
c2 = SocketConnection("localhost")
 
huge_xml = "<blah a='5' b='6'>   " * 50000 + "   </blah> " * 50000
parseString = Async(c.modules.xml.dom.minidom.parseString)
res = parseString(huge_xml)

src/l/a/landline-server-HEAD/co.whatisuplabs.ldln/lib/play/python/Lib/site-packages/Rpyc/Demo/testmodule.py   landline-server(Download)
import time
from Rpyc import Async
 
def threadfunc(callback):
    """this function will call the callback every second"""
    callback = Async(callback)
    try:
        while True:
            print "!"
            callback()

src/r/e/restcommander-HEAD/play-1.2.4/python/Lib/site-packages/Rpyc/Demo/testmodule.py   restcommander(Download)
import time
from Rpyc import Async
 
def threadfunc(callback):
    """this function will call the callback every second"""
    callback = Async(callback)
    try:
        while True:
            print "!"
            callback()

  1 | 2  Next